summaryrefslogtreecommitdiff
path: root/t/unit/utils/test_encoding.py
diff options
context:
space:
mode:
authorOmer Katz <omer.drow@gmail.com>2018-05-20 11:26:50 +0300
committerOmer Katz <omer.drow@gmail.com>2018-05-20 11:36:36 +0300
commitab1dd4e00916a1fa38ce1b5ebd43ebc59340b204 (patch)
treeeaa5810b02fdb86fb2129b64be9a0925266f4f02 /t/unit/utils/test_encoding.py
parent3bc949d63ac85080c08ebf01b67b450dfed54c28 (diff)
downloadkombu-isort.tar.gz
Introduced isort lint.isort
Diffstat (limited to 't/unit/utils/test_encoding.py')
-rw-r--r--t/unit/utils/test_encoding.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/t/unit/utils/test_encoding.py b/t/unit/utils/test_encoding.py
index 44c81a73..f1861664 100644
--- a/t/unit/utils/test_encoding.py
+++ b/t/unit/utils/test_encoding.py
@@ -2,16 +2,13 @@
from __future__ import absolute_import, unicode_literals
import sys
-
from contextlib import contextmanager
from case import patch, skip
-from kombu.five import bytes_t, string_t, string
-from kombu.utils.encoding import (
- get_default_encoding_file, safe_str,
- set_default_encoding_file, default_encoding,
-)
+from kombu.five import bytes_t, string, string_t
+from kombu.utils.encoding import (default_encoding, get_default_encoding_file,
+ safe_str, set_default_encoding_file)
@contextmanager
@@ -67,6 +64,7 @@ def test_default_encode():
class newbytes(bytes):
"""Mock class to simulate python-future newbytes class"""
+
def __repr__(self):
return 'b' + super(newbytes, self).__repr__()