mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
revert syntax change
This commit is contained in:
parent
752abd0d3c
commit
62ed91de31
1 changed files with 3 additions and 4 deletions
|
@ -63,10 +63,9 @@ def get_version_info():
|
|||
return get_header_version_info('.')
|
||||
except (IOError, OSError):
|
||||
version, release = get_sys_version_info()
|
||||
print('Can\'t get version info from Include/patchlevel.h, '
|
||||
'using version of this interpreter (%s).' % release,
|
||||
file=sys.stderr)
|
||||
print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \
|
||||
'using version of this interpreter (%s).' % release
|
||||
return version, release
|
||||
|
||||
if __name__ == '__main__':
|
||||
print(get_header_version_info('.')[1])
|
||||
print get_header_version_info('.')[1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue