cleanup imports
This commit is contained in:
parent
690b8b4f4e
commit
476badf45c
|
@ -2,7 +2,6 @@ from __future__ import (absolute_import, print_function, division)
|
|||
from argparse import Action, ArgumentTypeError
|
||||
import binascii
|
||||
|
||||
from .. import http
|
||||
|
||||
def parse_http_basic_auth(s):
|
||||
words = s.split()
|
||||
|
@ -37,7 +36,6 @@ class NullProxyAuth(object):
|
|||
"""
|
||||
Clean up authentication headers, so they're not passed upstream.
|
||||
"""
|
||||
pass
|
||||
|
||||
def authenticate(self, headers_):
|
||||
"""
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
from __future__ import (absolute_import, print_function, division)
|
||||
import binascii
|
||||
import collections
|
||||
import string
|
||||
import sys
|
||||
import urlparse
|
||||
import time
|
||||
|
||||
from netlib import odict, utils, tcp, http
|
||||
from netlib.http import semantics
|
||||
from .. import status_codes
|
||||
from ..exceptions import *
|
||||
|
||||
class TCPHandler(object):
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
from __future__ import (absolute_import, print_function, division)
|
||||
import binascii
|
||||
import collections
|
||||
import string
|
||||
import sys
|
||||
import urllib
|
||||
import urlparse
|
||||
|
||||
|
|
|
@ -1,12 +1,11 @@
|
|||
from __future__ import absolute_import
|
||||
import base64
|
||||
import hashlib
|
||||
import os
|
||||
import struct
|
||||
import io
|
||||
|
||||
from .protocol import Masker
|
||||
from netlib import utils, odict, tcp
|
||||
from netlib import tcp
|
||||
from netlib import utils
|
||||
|
||||
DEFAULT = object()
|
||||
|
||||
|
|
|
@ -2,10 +2,9 @@ from __future__ import absolute_import
|
|||
import base64
|
||||
import hashlib
|
||||
import os
|
||||
import struct
|
||||
import io
|
||||
|
||||
from netlib import utils, odict, tcp
|
||||
from netlib import odict
|
||||
from netlib import utils
|
||||
|
||||
# Colleciton of utility functions that implement small portions of the RFC6455
|
||||
# WebSockets Protocol Useful for building WebSocket clients and servers.
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import cStringIO
|
||||
import textwrap
|
||||
import binascii
|
||||
|
||||
from netlib import http, odict, tcp, tutils
|
||||
from netlib.http import semantics
|
||||
|
|
|
@ -1,13 +1,11 @@
|
|||
import cStringIO
|
||||
import textwrap
|
||||
import binascii
|
||||
import mock
|
||||
from mock import MagicMock
|
||||
|
||||
from netlib import http, odict, tcp, tutils, utils
|
||||
from netlib import http
|
||||
from netlib import odict
|
||||
from netlib import tutils
|
||||
from netlib import utils
|
||||
from netlib.http import semantics
|
||||
from netlib.http.semantics import CONTENT_MISSING
|
||||
from .. import tservers
|
||||
|
||||
class TestProtocolMixin(object):
|
||||
@mock.patch("netlib.http.semantics.ProtocolMixin.assemble_response")
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import urlparse
|
||||
|
||||
from netlib import utils, odict, tutils
|
||||
|
||||
|
|
|
@ -3,7 +3,8 @@ import threading
|
|||
import Queue
|
||||
import cStringIO
|
||||
import OpenSSL
|
||||
from netlib import tcp, certutils, tutils
|
||||
from netlib import tcp
|
||||
from netlib import tutils
|
||||
|
||||
|
||||
class ServerThread(threading.Thread):
|
||||
|
|
|
@ -2,7 +2,9 @@ import os
|
|||
|
||||
from nose.tools import raises
|
||||
|
||||
from netlib import tcp, http, websockets, tutils
|
||||
from netlib import tcp
|
||||
from netlib import tutils
|
||||
from netlib import websockets
|
||||
from netlib.http import status_codes
|
||||
from netlib.http.exceptions import *
|
||||
from netlib.http.http1 import HTTP1Protocol
|
||||
|
|
Loading…
Reference in New Issue