From 549a26860f817ee82382503b4d65c830ae8be1db Mon Sep 17 00:00:00 2001 From: rht Date: Sun, 5 Nov 2017 06:27:00 +0100 Subject: [PATCH] refactor: Remove six.moves.range import. --- analytics/views.py | 2 +- puppet/zulip_ops/files/zulip-ec2-configure-interfaces | 1 - tools/renumber-migrations | 2 +- zerver/lib/i18n.py | 2 +- zerver/tests/test_signup.py | 1 - zerver/views/home.py | 2 +- zerver/webhooks/taiga/view.py | 2 -- 7 files changed, 4 insertions(+), 8 deletions(-) diff --git a/analytics/views.py b/analytics/views.py index 6580541971..605155372b 100644 --- a/analytics/views.py +++ b/analytics/views.py @@ -35,7 +35,7 @@ import pytz import re import time -from six.moves import filter, map, range +from six.moves import filter, map from typing import Any, Callable, Dict, List, Optional, Set, Text, \ Tuple, Type, Union diff --git a/puppet/zulip_ops/files/zulip-ec2-configure-interfaces b/puppet/zulip_ops/files/zulip-ec2-configure-interfaces index f44e245010..bb1fdc9e5f 100755 --- a/puppet/zulip_ops/files/zulip-ec2-configure-interfaces +++ b/puppet/zulip_ops/files/zulip-ec2-configure-interfaces @@ -53,7 +53,6 @@ import sys import boto.utils import netifaces -from six.moves import range if False: from typing import Optional diff --git a/tools/renumber-migrations b/tools/renumber-migrations index 07fa27794c..ea86a6a4a0 100755 --- a/tools/renumber-migrations +++ b/tools/renumber-migrations @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from six.moves import input, map, range +from six.moves import input, map import glob import os import sys diff --git a/zerver/lib/i18n.py b/zerver/lib/i18n.py index 4e4d8f9241..b7ef8b3ead 100644 --- a/zerver/lib/i18n.py +++ b/zerver/lib/i18n.py @@ -6,7 +6,7 @@ from django.utils import translation from django.utils.translation import ugettext as _ from django.utils.lru_cache import lru_cache -from six.moves import zip_longest, range +from six.moves import zip_longest from typing import Any, List, Dict, Optional, Text import os diff --git a/zerver/tests/test_signup.py b/zerver/tests/test_signup.py index f41585f444..7603c40dc3 100644 --- a/zerver/tests/test_signup.py +++ b/zerver/tests/test_signup.py @@ -63,7 +63,6 @@ import ujson from typing import Any, Dict, List, Optional, Set, Text -from six.moves import range import urllib import os diff --git a/zerver/views/home.py b/zerver/views/home.py index c3b0ef955b..f2c49674c3 100644 --- a/zerver/views/home.py +++ b/zerver/views/home.py @@ -6,7 +6,7 @@ from django.http import HttpResponseRedirect, HttpResponse, HttpRequest from django.shortcuts import redirect, render from django.utils import translation from django.utils.cache import patch_cache_control -from six.moves import zip_longest, range +from six.moves import zip_longest from zerver.decorator import zulip_login_required, process_client from zerver.forms import ToSForm diff --git a/zerver/webhooks/taiga/view.py b/zerver/webhooks/taiga/view.py index e28e3f3cc0..511dc22af4 100644 --- a/zerver/webhooks/taiga/view.py +++ b/zerver/webhooks/taiga/view.py @@ -30,8 +30,6 @@ from zerver.lib.request import REQ, has_request_variables from zerver.models import UserProfile import ujson -from six.moves import range - @api_key_only_webhook_view('Taiga') @has_request_variables