Closes #13291: NameError in xmlrpc package.

This commit is contained in:
Florent Xicluna 2011-10-30 20:18:50 +01:00
parent 2b50a01d11
commit 3fa29f7cd7
4 changed files with 56 additions and 13 deletions

View file

@ -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"):