summaryrefslogtreecommitdiff
path: root/python/subunit/details.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/subunit/details.py')
-rw-r--r--python/subunit/details.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/python/subunit/details.py b/python/subunit/details.py
index 5105580..f231cf6 100644
--- a/python/subunit/details.py
+++ b/python/subunit/details.py
@@ -6,7 +6,7 @@
# license at the users choice. A copy of both licenses are available in the
# project source as Apache-2.0 and BSD. You may not use this file except in
# compliance with one of these two licences.
-#
+#
# Unless required by applicable law or agreed to in writing, software
# distributed under these licenses is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -16,12 +16,10 @@
"""Handlers for outcome details."""
+from io import BytesIO, StringIO
+
from testtools import content, content_type
from testtools.compat import _b
-try:
- from testtools.compat import BytesIO, StringIO
-except ImportError:
- from io import BytesIO, StringIO
from subunit import chunked