diff options
| author | Robert Collins <robertc@robertcollins.net> | 2012-05-08 07:36:05 +1200 |
|---|---|---|
| committer | Robert Collins <robertc@robertcollins.net> | 2012-05-08 07:36:05 +1200 |
| commit | 4ea90f04f1b71d01eed6721c36f99a781d24d8cf (patch) | |
| tree | 6a52b2a29c9c5bd5cddc58f55d50418bf53283f8 /python/subunit/iso8601.py | |
| parent | 262438a3ca4d9523965ba7d3e432eab6000811ce (diff) | |
| download | subunit-git-4ea90f04f1b71d01eed6721c36f99a781d24d8cf.tar.gz | |
* Python3 support regressed in trunk.
(Arfrever Frehtes Taifersar Arahesis, #987514)
Diffstat (limited to 'python/subunit/iso8601.py')
| -rw-r--r-- | python/subunit/iso8601.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/subunit/iso8601.py b/python/subunit/iso8601.py index cbe9a3b..07855d0 100644 --- a/python/subunit/iso8601.py +++ b/python/subunit/iso8601.py @@ -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) |
