Commit 50d864aa authored by Jason R. Coombs's avatar Jason R. Coombs

Reindent

parent 41112f5a
...@@ -472,9 +472,9 @@ def get_pkg_info_revision(): ...@@ -472,9 +472,9 @@ def get_pkg_info_revision():
# a subversion revision # a subversion revision
# #
if os.path.exists('PKG-INFO'): if os.path.exists('PKG-INFO'):
with io.open('PKG-INFO') as f: with io.open('PKG-INFO') as f:
for line in f: for line in f:
match = re.match(r"Version:.*-r(\d+)\s*$", line) match = re.match(r"Version:.*-r(\d+)\s*$", line)
if match: if match:
return int(match.group(1)) return int(match.group(1))
return 0 return 0
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment