mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
This commit is contained in:
parent
a9725f86a9
commit
885bdc4946
24 changed files with 56 additions and 52 deletions
|
@ -151,7 +151,7 @@ def escape(s):
|
|||
return s.replace(">", ">",)
|
||||
|
||||
# used in User-Agent header sent
|
||||
__version__ = sys.version[:3]
|
||||
__version__ = '%d.%d' % sys.version_info[:2]
|
||||
|
||||
# xmlrpc integer limits
|
||||
MAXINT = 2**31-1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue