Skip to content

Commit

Permalink
Fix _sys_version() so it works with the new buildno, not sure if it i…
Browse files Browse the repository at this point in the history
…s correct. test_platform passes
  • Loading branch information
nnorwitz committed Dec 18, 2005
1 parent 8856fb7 commit 3dafaab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,7 @@ def processor():
### Various APIs for extracting information from sys.version

_sys_version_parser = re.compile(r'([\w.+]+)\s*'
'\(#(\d+),\s*([\w ]+),\s*([\w :]+)\)\s*'
'\(#?(\d+:?\d+M?),\s*([\w ]+),\s*([\w :]+)\)\s*'
'\[([^\]]+)\]?')
_sys_version_cache = None

Expand All @@ -1114,7 +1114,6 @@ def _sys_version():
return _sys_version_cache
version, buildno, builddate, buildtime, compiler = \
_sys_version_parser.match(sys.version).groups()
buildno = int(buildno)
builddate = builddate + ' ' + buildtime
l = string.split(version, '.')
if len(l) == 2:
Expand Down

0 comments on commit 3dafaab

Please sign in to comment.