Also for Python 3

This commit is contained in:
George Sibble 2013-02-28 15:06:59 -08:00
parent 7354d6722f
commit 55cf01d9f7

View File

@ -159,6 +159,8 @@ class ApiClient:
value = attrType(value)
except UnicodeEncodeError:
value = unicode(value)
except TypeError:
value = value
setattr(instance, attr, value)
elif (attrType == 'datetime'):
setattr(instance, attr, datetime.datetime.strptime(value[:-5],