~ubuntu-branches/debian/stretch/subunit/stretch

« back to all changes in this revision

Viewing changes to python/subunit/iso8601.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-05-22 10:42:37 UTC
  • mfrom: (1.1.8) (3.2.10 sid)
  • Revision ID: package-import@ubuntu.com-20120522104237-0oqz12h177293t2p
Tags: 0.0.8+bzr176-1
* New upstream snapshot.
* Fix dependencies for python3-subunit to depend on python3 rather than
  python2. Closes: #674225

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
    if groups["fraction"] is None:
128
128
        groups["fraction"] = 0
129
129
    else:
130
 
        groups["fraction"] = int(float("0.%s" % groups["fraction"]) * 1e6)
 
130
        groups["fraction"] = int(float("0.%s" % groups["fraction"].decode()) * 1e6)
131
131
    return datetime(int(groups["year"]), int(groups["month"]), int(groups["day"]),
132
132
        int(groups["hour"]), int(groups["minute"]), int(groups["second"]),
133
133
        int(groups["fraction"]), tz)