summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-02-11 11:10:36 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-02-11 11:10:36 (GMT)
commit885bdc4946890f4bb80557fab80c3874b2cc4d39 (patch)
treebe6280757afecfd1b41c886f651d6cafae384df1 /Lib/xmlrpc
parenta9725f86a984f74e74f09c4808fc8f4b403728b2 (diff)
downloadcpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.zip
cpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.tar.gz
cpython-885bdc4946890f4bb80557fab80c3874b2cc4d39.tar.bz2
Issue #25985: sys.version_info is now used instead of sys.version
to format short Python version.
Diffstat (limited to 'Lib/xmlrpc')
-rw-r--r--Lib/xmlrpc/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xmlrpc/client.py b/Lib/xmlrpc/client.py
index bf42835..07a4f03 100644
--- a/Lib/xmlrpc/client.py
+++ b/Lib/xmlrpc/client.py
@@ -151,7 +151,7 @@ def escape(s):
return s.replace(">", "&gt;",)
# used in User-Agent header sent
-__version__ = sys.version[:3]
+__version__ = '%d.%d' % sys.version_info[:2]
# xmlrpc integer limits
MAXINT = 2**31-1