mirror of https://github.com/zulip/zulip.git
refactor: Remove six.moves.range import.
This commit is contained in:
parent
ec5120e807
commit
549a26860f
|
@ -35,7 +35,7 @@ import pytz
|
||||||
import re
|
import re
|
||||||
import time
|
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, \
|
from typing import Any, Callable, Dict, List, Optional, Set, Text, \
|
||||||
Tuple, Type, Union
|
Tuple, Type, Union
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,6 @@ import sys
|
||||||
|
|
||||||
import boto.utils
|
import boto.utils
|
||||||
import netifaces
|
import netifaces
|
||||||
from six.moves import range
|
|
||||||
if False:
|
if False:
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from six.moves import input, map, range
|
from six.moves import input, map
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -6,7 +6,7 @@ from django.utils import translation
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
from django.utils.lru_cache import lru_cache
|
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
|
from typing import Any, List, Dict, Optional, Text
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -63,7 +63,6 @@ import ujson
|
||||||
|
|
||||||
from typing import Any, Dict, List, Optional, Set, Text
|
from typing import Any, Dict, List, Optional, Set, Text
|
||||||
|
|
||||||
from six.moves import range
|
|
||||||
import urllib
|
import urllib
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ from django.http import HttpResponseRedirect, HttpResponse, HttpRequest
|
||||||
from django.shortcuts import redirect, render
|
from django.shortcuts import redirect, render
|
||||||
from django.utils import translation
|
from django.utils import translation
|
||||||
from django.utils.cache import patch_cache_control
|
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.decorator import zulip_login_required, process_client
|
||||||
from zerver.forms import ToSForm
|
from zerver.forms import ToSForm
|
||||||
|
|
|
@ -30,8 +30,6 @@ from zerver.lib.request import REQ, has_request_variables
|
||||||
from zerver.models import UserProfile
|
from zerver.models import UserProfile
|
||||||
|
|
||||||
import ujson
|
import ujson
|
||||||
from six.moves import range
|
|
||||||
|
|
||||||
|
|
||||||
@api_key_only_webhook_view('Taiga')
|
@api_key_only_webhook_view('Taiga')
|
||||||
@has_request_variables
|
@has_request_variables
|
||||||
|
|
Loading…
Reference in New Issue