refactor: Remove six.moves.map import.

This commit is contained in:
rht 2017-11-05 06:30:14 +01:00 committed by Tim Abbott
parent 549a26860f
commit 80a8d4f9f3
11 changed files with 5 additions and 12 deletions

View File

@ -35,7 +35,7 @@ import pytz
import re
import time
from six.moves import filter, map
from six.moves import filter
from typing import Any, Callable, Dict, List, Optional, Set, Text, \
Tuple, Type, Union

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3
from six.moves import input, map
from six.moves import input
import glob
import os
import sys

View File

@ -82,7 +82,6 @@ from django.utils.timezone import now as timezone_now
from confirmation.models import Confirmation, create_confirmation_link
from confirmation import settings as confirmation_settings
from six.moves import filter
from six.moves import map
from six import unichr
from zerver.lib.create_user import random_api_key

View File

@ -7,7 +7,7 @@ import ujson
from django.utils.translation import ugettext as _
from django.conf import settings
from importlib import import_module
from six.moves import filter, map
from six.moves import filter
from typing import (
cast, Any, Callable, Dict, Iterable, List, Optional, Sequence, Set, Text, Tuple, Union
)

View File

@ -11,7 +11,6 @@ from django.utils.translation import ugettext as _
from django.template import loader
from zerver.templatetags.app_filters import render_markdown_path
from six.moves import map
"""This module declares all of the (documented) integrations available

View File

@ -2,7 +2,6 @@
import re
import os
import sourcemap
from six.moves import map
from typing import Dict, List, Text

View File

@ -12,7 +12,7 @@ import sys
from time import sleep
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
T = TypeVar('T')

View File

@ -5,7 +5,6 @@ from django.utils.timezone import now as timezone_now
from typing import Any, List, Dict
from argparse import ArgumentParser
from six.moves import map
import sys
from zerver.models import UserProfile, UserMessage, Realm, RealmAuditLog

View File

@ -4,7 +4,7 @@ import os
import glob
from datetime import timedelta
from mock import MagicMock, patch
from six.moves import map, filter
from six.moves import filter
from typing import List, Dict, Any, Optional
from django.conf import settings

View File

@ -53,8 +53,6 @@ import re
import ujson
import datetime
from six.moves import map
LARGER_THAN_MAX_MESSAGE_ID = 10000000000000000
class BadNarrowOperator(JsonableError):

View File

@ -8,7 +8,6 @@ from django.http import HttpRequest, HttpResponse
from django.utils.translation import ugettext as _
from django.shortcuts import redirect, render
from django.conf import settings
from six.moves import map
from zerver.decorator import require_realm_admin, zulip_login_required
from zerver.forms import CreateUserForm