🤖 Repository layout updated to latest version
This commit was automatically generated by [a script](https://gitfub.space/Jmaa/repo-manager)
This commit is contained in:
parent
29018baf4e
commit
dd85199c73
2
setup.py
2
setup.py
|
@ -55,7 +55,7 @@ This program collects several small data fetchers, for downloading personal
|
||||||
data spread around the internet.""".strip()
|
data spread around the internet.""".strip()
|
||||||
|
|
||||||
def parse_version_file(text: str) -> str:
|
def parse_version_file(text: str) -> str:
|
||||||
text = re.sub('^#.*$', '', text)
|
text = re.sub('^#.*', '', text, flags=re.MULTILINE)
|
||||||
match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
|
||||||
if match is None:
|
if match is None:
|
||||||
msg = 'Malformed _version.py file!'
|
msg = 'Malformed _version.py file!'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user