summaryrefslogtreecommitdiff
path: root/python/subunit/v2.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2023-01-28 16:55:56 +0000
committerJelmer Vernooij <jelmer@jelmer.uk>2023-02-10 17:47:03 +0000
commit496a0a483dd8629deaf7821c739b2b83c8e7d3d6 (patch)
treefc829e4d55d66082e48c0dcb0389b9f7efe377db /python/subunit/v2.py
parente40507dfb292de805fcbd125594579c40e5165a8 (diff)
downloadsubunit-git-external-iso8601.tar.gz
Rely on external copy of iso8601external-iso8601
Diffstat (limited to 'python/subunit/v2.py')
-rw-r--r--python/subunit/v2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/subunit/v2.py b/python/subunit/v2.py
index d344aff..9619f3c 100644
--- a/python/subunit/v2.py
+++ b/python/subunit/v2.py
@@ -23,7 +23,7 @@ import sys
import zlib
import subunit
-import subunit.iso8601 as iso8601
+import iso8601
utf_8_decode = codecs.utf_8_decode
@@ -46,7 +46,7 @@ FLAG_TAGS = 0x0080
FLAG_MIME_TYPE = 0x0020
FLAG_EOF = 0x0010
FLAG_FILE_CONTENT = 0x0040
-EPOCH = datetime.datetime.utcfromtimestamp(0).replace(tzinfo=iso8601.Utc())
+EPOCH = datetime.datetime.utcfromtimestamp(0).replace(tzinfo=iso8601.UTC)
NUL_ELEMENT = b'\0'[0]
# Contains True for types for which 'nul in thing' falsely returns false.
_nul_test_broken = {}