mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 15:31:20 +00:00
refactor: Remove six.moves.urllib.parse import.
This commit is contained in:
@@ -47,7 +47,7 @@ from optparse import OptionParser
|
|||||||
import posix
|
import posix
|
||||||
import json
|
import json
|
||||||
|
|
||||||
from six.moves.urllib.parse import urljoin, urlencode
|
from urllib.parse import urljoin, urlencode
|
||||||
from six.moves.urllib.request import Request, urlopen
|
from six.moves.urllib.request import Request, urlopen
|
||||||
from six.moves.urllib.error import HTTPError
|
from six.moves.urllib.error import HTTPError
|
||||||
from configparser import RawConfigParser
|
from configparser import RawConfigParser
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from posixpath import basename
|
from posixpath import basename
|
||||||
from six.moves.urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from .common.spiders import BaseDocumentationSpider
|
from .common.spiders import BaseDocumentationSpider
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import sys
|
|||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
from six.moves.urllib.parse import urlunparse
|
from urllib.parse import urlunparse
|
||||||
|
|
||||||
# check for the venv
|
# check for the venv
|
||||||
from lib import sanity_check
|
from lib import sanity_check
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ from zerver.tornado.event_queue import fetch_events, \
|
|||||||
from zerver.tornado.views import get_events_backend
|
from zerver.tornado.views import get_events_backend
|
||||||
|
|
||||||
from six.moves.http_cookies import SimpleCookie
|
from six.moves.http_cookies import SimpleCookie
|
||||||
from six.moves import urllib_parse
|
import urllib.parse
|
||||||
|
|
||||||
from typing import Any, Callable, Dict, Generator, Optional, Text, List, cast
|
from typing import Any, Callable, Dict, Generator, Optional, Text, List, cast
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@ class EventsTestCase(TornadoWebTestCase):
|
|||||||
'last_event_id': 0,
|
'last_event_id': 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
path = '/json/events?{}'.format(urllib_parse.urlencode(data))
|
path = '/json/events?{}'.format(urllib.parse.urlencode(data))
|
||||||
self.client_get_async(path)
|
self.client_get_async(path)
|
||||||
|
|
||||||
def process_events():
|
def process_events():
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ from tornado.ioloop import IOLoop
|
|||||||
from tornado import gen
|
from tornado import gen
|
||||||
from tornado.httpclient import HTTPRequest
|
from tornado.httpclient import HTTPRequest
|
||||||
from tornado.websocket import websocket_connect, WebSocketClientConnection
|
from tornado.websocket import websocket_connect, WebSocketClientConnection
|
||||||
from six.moves.urllib.parse import urlparse, urlunparse, urljoin
|
from urllib.parse import urlparse, urlunparse, urljoin
|
||||||
from six.moves.http_cookies import SimpleCookie
|
from six.moves.http_cookies import SimpleCookie
|
||||||
|
|
||||||
from zerver.models import get_system_bot
|
from zerver.models import get_system_bot
|
||||||
|
|||||||
Reference in New Issue
Block a user