refactor: Remove six.moves.urllib.parse import.

This commit is contained in:
rht 2017-11-06 03:14:57 +01:00 committed by Tim Abbott
parent ccf2792c1c
commit 9c7d5812ce
5 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ from optparse import OptionParser
import posix
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.error import HTTPError
from configparser import RawConfigParser

View File

@ -1,7 +1,7 @@
import os
from posixpath import basename
from six.moves.urllib.parse import urlparse
from urllib.parse import urlparse
from .common.spiders import BaseDocumentationSpider

View File

@ -9,7 +9,7 @@ import sys
import time
import traceback
from six.moves.urllib.parse import urlunparse
from urllib.parse import urlunparse
# check for the venv
from lib import sanity_check

View File

@ -35,7 +35,7 @@ from zerver.tornado.event_queue import fetch_events, \
from zerver.tornado.views import get_events_backend
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
@ -131,7 +131,7 @@ class EventsTestCase(TornadoWebTestCase):
'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)
def process_events():

View File

@ -13,7 +13,7 @@ from tornado.ioloop import IOLoop
from tornado import gen
from tornado.httpclient import HTTPRequest
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 zerver.models import get_system_bot