zerver/lib: remove import six.

This commit is contained in:
rht
2017-09-27 10:06:17 +02:00
committed by Tim Abbott
parent 43fd0e8134
commit 035ed93111
17 changed files with 21 additions and 39 deletions

View File

@@ -61,7 +61,6 @@ from six import binary_type
from zerver.lib.str_utils import NonBinaryStr
from contextlib import contextmanager
import six
API_KEYS = {} # type: Dict[Text, Text]
@@ -380,7 +379,7 @@ class ZulipTestCase(TestCase):
message_type_name = "stream"
else:
raise AssertionError("Recipient type should be an Recipient.STREAM type enum")
if isinstance(raw_recipients, six.string_types):
if isinstance(raw_recipients, str):
recipient_list = [raw_recipients]
else:
recipient_list = raw_recipients