refactor: Remove six.moves.https_cookies import.

This commit is contained in:
rht
2017-11-06 03:07:49 +01:00
committed by Tim Abbott
parent 01eb22abd9
commit fa7016644e
3 changed files with 4 additions and 4 deletions

View File

@@ -61,7 +61,7 @@ from social_core.backends.github import GithubOrganizationOAuth2, GithubTeamOAut
GithubOAuth2
import urllib
from six.moves.http_cookies import SimpleCookie
from http.cookies import SimpleCookie
import ujson
from zerver.lib.test_helpers import MockLDAP, load_subdomain_token

View File

@@ -34,7 +34,7 @@ from zerver.tornado.event_queue import fetch_events, \
allocate_client_descriptor, process_event
from zerver.tornado.views import get_events_backend
from six.moves.http_cookies import SimpleCookie
from http.cookies import SimpleCookie
import urllib.parse
from typing import Any, Callable, Dict, Generator, Optional, Text, List, cast
@@ -197,7 +197,7 @@ class TornadoTestCase(WebSocketBaseTestCase):
@staticmethod
def get_cookie_header(cookies):
# type: (Dict[Any, Any]) -> str
# type: (SimpleCookie) -> str
return ';'.join(
["{}={}".format(name, value.value) for name, value in cookies.items()])

View File

@@ -14,7 +14,7 @@ from tornado import gen
from tornado.httpclient import HTTPRequest
from tornado.websocket import websocket_connect, WebSocketClientConnection
from urllib.parse import urlparse, urlunparse, urljoin
from six.moves.http_cookies import SimpleCookie
from http.cookies import SimpleCookie
from zerver.models import get_system_bot