Cleanup scripts
This commit is contained in:
1 parent
bd3273021b
commit
4939d67a83
2 files changed
+8
-3
No files matched your search
+1
-1
@@ -284,7 +284,7 @@ def release(args):
|
||||
script = os.path.join('doc', 'build.py')
|
||||
script_path = os.path.join(fmt_repo.dir, script)
|
||||
for line in fileinput.input(script_path, inplace=True):
|
||||
m = re.match(r'( *versions = )\[(.+)\]', line)
|
||||
m = re.match(r'( *versions \+= )\[(.+)\]', line)
|
||||
if m:
|
||||
line = '{}[{}, \'{}\']\n'.format(m.group(1), m.group(2), version)
|
||||
sys.stdout.write(line)
|
||||
|
||||
Reference in new issue
Block a user