mirror of https://github.com/zulip/zulip.git
refactor: Remove six.moves.map import.
This commit is contained in:
parent
549a26860f
commit
80a8d4f9f3
|
@ -35,7 +35,7 @@ import pytz
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from six.moves import filter, map
|
from six.moves import filter
|
||||||
from typing import Any, Callable, Dict, List, Optional, Set, Text, \
|
from typing import Any, Callable, Dict, List, Optional, Set, Text, \
|
||||||
Tuple, Type, Union
|
Tuple, Type, Union
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from six.moves import input, map
|
from six.moves import input
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -82,7 +82,6 @@ from django.utils.timezone import now as timezone_now
|
||||||
from confirmation.models import Confirmation, create_confirmation_link
|
from confirmation.models import Confirmation, create_confirmation_link
|
||||||
from confirmation import settings as confirmation_settings
|
from confirmation import settings as confirmation_settings
|
||||||
from six.moves import filter
|
from six.moves import filter
|
||||||
from six.moves import map
|
|
||||||
from six import unichr
|
from six import unichr
|
||||||
|
|
||||||
from zerver.lib.create_user import random_api_key
|
from zerver.lib.create_user import random_api_key
|
||||||
|
|
|
@ -7,7 +7,7 @@ import ujson
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from importlib import import_module
|
from importlib import import_module
|
||||||
from six.moves import filter, map
|
from six.moves import filter
|
||||||
from typing import (
|
from typing import (
|
||||||
cast, Any, Callable, Dict, Iterable, List, Optional, Sequence, Set, Text, Tuple, Union
|
cast, Any, Callable, Dict, Iterable, List, Optional, Sequence, Set, Text, Tuple, Union
|
||||||
)
|
)
|
||||||
|
|
|
@ -11,7 +11,6 @@ from django.utils.translation import ugettext as _
|
||||||
from django.template import loader
|
from django.template import loader
|
||||||
|
|
||||||
from zerver.templatetags.app_filters import render_markdown_path
|
from zerver.templatetags.app_filters import render_markdown_path
|
||||||
from six.moves import map
|
|
||||||
|
|
||||||
|
|
||||||
"""This module declares all of the (documented) integrations available
|
"""This module declares all of the (documented) integrations available
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import sourcemap
|
import sourcemap
|
||||||
from six.moves import map
|
|
||||||
|
|
||||||
from typing import Dict, List, Text
|
from typing import Dict, List, Text
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ import sys
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from six.moves import map, zip_longest
|
from six.moves import zip_longest
|
||||||
from zerver.lib.str_utils import force_text
|
from zerver.lib.str_utils import force_text
|
||||||
|
|
||||||
T = TypeVar('T')
|
T = TypeVar('T')
|
||||||
|
|
|
@ -5,7 +5,6 @@ from django.utils.timezone import now as timezone_now
|
||||||
|
|
||||||
from typing import Any, List, Dict
|
from typing import Any, List, Dict
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from six.moves import map
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from zerver.models import UserProfile, UserMessage, Realm, RealmAuditLog
|
from zerver.models import UserProfile, UserMessage, Realm, RealmAuditLog
|
||||||
|
|
|
@ -4,7 +4,7 @@ import os
|
||||||
import glob
|
import glob
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
from mock import MagicMock, patch
|
from mock import MagicMock, patch
|
||||||
from six.moves import map, filter
|
from six.moves import filter
|
||||||
from typing import List, Dict, Any, Optional
|
from typing import List, Dict, Any, Optional
|
||||||
|
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
|
@ -53,8 +53,6 @@ import re
|
||||||
import ujson
|
import ujson
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
from six.moves import map
|
|
||||||
|
|
||||||
LARGER_THAN_MAX_MESSAGE_ID = 10000000000000000
|
LARGER_THAN_MAX_MESSAGE_ID = 10000000000000000
|
||||||
|
|
||||||
class BadNarrowOperator(JsonableError):
|
class BadNarrowOperator(JsonableError):
|
||||||
|
|
|
@ -8,7 +8,6 @@ from django.http import HttpRequest, HttpResponse
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
from django.shortcuts import redirect, render
|
from django.shortcuts import redirect, render
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from six.moves import map
|
|
||||||
|
|
||||||
from zerver.decorator import require_realm_admin, zulip_login_required
|
from zerver.decorator import require_realm_admin, zulip_login_required
|
||||||
from zerver.forms import CreateUserForm
|
from zerver.forms import CreateUserForm
|
||||||
|
|
Loading…
Reference in New Issue