summaryrefslogtreecommitdiffstats
path: root/Lib/xmlrpc/client.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-10-30 19:18:50 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-10-30 19:18:50 (GMT)
commit3fa29f7cd77970df2d85db3e7565cf0ad2548883 (patch)
tree81ed4ad710f659a3383b362a5e426cafe71189da /Lib/xmlrpc/client.py
parent2b50a01d11710c0a01f90fa4398b717a63b1d0d8 (diff)
downloadcpython-3fa29f7cd77970df2d85db3e7565cf0ad2548883.zip
cpython-3fa29f7cd77970df2d85db3e7565cf0ad2548883.tar.gz
cpython-3fa29f7cd77970df2d85db3e7565cf0ad2548883.tar.bz2
Closes #13291: NameError in xmlrpc package.
Diffstat (limited to 'Lib/xmlrpc/client.py')
-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 19d4d69..9312344 100644
--- a/Lib/xmlrpc/client.py
+++ b/Lib/xmlrpc/client.py
@@ -302,7 +302,7 @@ class DateTime:
elif datetime and isinstance(other, datetime.datetime):
s = self.value
o = other.strftime("%Y%m%dT%H:%M:%S")
- elif isinstance(other, (str, unicode)):
+ elif isinstance(other, str):
s = self.value
o = other
elif hasattr(other, "timetuple"):