subunit: Update to latest upstream version.
[samba.git] / lib / subunit / python / subunit / iso8601.py
index cbe9a3b3ebd9e28e78936ffa115a8d5b601e910f..07855d0975c944a054c707f515f40402fcd2ea72 100644 (file)
@@ -127,7 +127,7 @@ def parse_date(datestring, default_timezone=UTC):
     if groups["fraction"] is None:
         groups["fraction"] = 0
     else:
-        groups["fraction"] = int(float("0.%s" % groups["fraction"]) * 1e6)
+        groups["fraction"] = int(float("0.%s" % groups["fraction"].decode()) * 1e6)
     return datetime(int(groups["year"]), int(groups["month"]), int(groups["day"]),
         int(groups["hour"]), int(groups["minute"]), int(groups["second"]),
         int(groups["fraction"]), tz)