Commits

Tim Heap committed 054f738

`datetime.isoformat()` expects a `str`, not `unicode`

With `unicode_literals` turned on, this was failing.

  • Participants
  • Parent commits a4709c7

Comments (0)

Files changed (1)

File pysimplesoap/simplexml.py

                 s = s[:s.index(".")]
             return _strptime(s, fmt)
 
-datetime_m = lambda dt: dt.isoformat('T')
+datetime_m = lambda dt: dt.isoformat(str('T'))
 date_u = lambda s: _strptime(s[0:10], "%Y-%m-%d").date()
 date_m = lambda d: d.strftime("%Y-%m-%d")
 time_u = lambda s: _strptime(s, "%H:%M:%S").time()