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

@@ -10,7 +10,6 @@ from zerver.models import (
UserProfile,
get_user_including_cross_realm,
)
import six
def user_profiles_from_unvalidated_emails(emails, realm):
# type: (Iterable[Text], Realm) -> List[UserProfile]
@@ -28,7 +27,7 @@ def get_user_profiles(emails, realm):
try:
return user_profiles_from_unvalidated_emails(emails, realm)
except ValidationError as e:
assert isinstance(e.messages[0], six.string_types)
assert isinstance(e.messages[0], str)
raise JsonableError(e.messages[0])
class Addressee(object):