mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +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
|
@ -133,7 +133,7 @@ __all__ = [
|
|||
]
|
||||
|
||||
# used in User-Agent header sent
|
||||
__version__ = sys.version[:3]
|
||||
__version__ = '%d.%d' % sys.version_info[:2]
|
||||
|
||||
_opener = None
|
||||
def urlopen(url, data=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue