Fix updating version for py2.
This commit is contained in:
parent
15d596ce75
commit
0648393274
@ -46,7 +46,7 @@ def migrate_source_attribute(attr, to_this, target_file, regex):
|
|||||||
def migrate_version(target_file, new_version):
|
def migrate_version(target_file, new_version):
|
||||||
"""Updates __version__ in the source file"""
|
"""Updates __version__ in the source file"""
|
||||||
regex = r"['\"](.*)['\"]"
|
regex = r"['\"](.*)['\"]"
|
||||||
migrate_source_attribute('__version__', f"'{new_version}'", target_file, regex)
|
migrate_source_attribute('__version__', "'%s'" % new_version, target_file, regex)
|
||||||
|
|
||||||
|
|
||||||
def is_master_branch():
|
def is_master_branch():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user