mirror of
https://github.com/python/cpython.git
synced 2025-09-11 03:07:01 +00:00
Convert a lot of print statements to print functions in docstrings,
documentation, and unused/rarely used functions.
This commit is contained in:
parent
8321f97891
commit
752abd0d3c
20 changed files with 53 additions and 50 deletions
|
@ -63,9 +63,10 @@ def get_version_info():
|
|||
return get_header_version_info('.')
|
||||
except (IOError, OSError):
|
||||
version, release = get_sys_version_info()
|
||||
print >>sys.stderr, 'Can\'t get version info from Include/patchlevel.h, ' \
|
||||
'using version of this interpreter (%s).' % release
|
||||
print('Can\'t get version info from Include/patchlevel.h, '
|
||||
'using version of this interpreter (%s).' % release,
|
||||
file=sys.stderr)
|
||||
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