Merge pull request #115 from Kriechi/move-tservers

move tservers to netlib module
This commit is contained in:
Thomas Kriechbaumer 2016-01-25 15:22:36 +01:00
commit dc7d41e7a5
4 changed files with 5 additions and 6 deletions

View File

@ -1,8 +1,10 @@
from __future__ import (absolute_import, print_function, division) from __future__ import (absolute_import, print_function, division)
import threading import threading
from six.moves import queue from six.moves import queue
from io import StringIO from io import StringIO
import OpenSSL import OpenSSL
from netlib import tcp from netlib import tcp
from netlib import tutils from netlib import tutils

View File

@ -1,12 +1,11 @@
import OpenSSL import OpenSSL
import mock import mock
from netlib import tcp, http, tutils from netlib import tcp, http, tutils, tservers
from netlib.exceptions import TcpDisconnect from netlib.exceptions import TcpDisconnect
from netlib.http import Headers from netlib.http import Headers
from netlib.http.http2.connections import HTTP2Protocol, TCPHandler from netlib.http.http2.connections import HTTP2Protocol, TCPHandler
from netlib.http.http2.frame import * from netlib.http.http2.frame import *
from ... import tservers
class TestTCPHandlerWrapper: class TestTCPHandlerWrapper:
def test_wrapped(self): def test_wrapped(self):

View File

@ -10,8 +10,7 @@ import mock
from OpenSSL import SSL from OpenSSL import SSL
import OpenSSL import OpenSSL
from netlib import tcp, certutils, tutils from netlib import tcp, certutils, tutils, tservers
from . import tservers
from netlib.exceptions import InvalidCertificateException, TcpReadIncomplete, TlsException, \ from netlib.exceptions import InvalidCertificateException, TcpReadIncomplete, TlsException, \
TcpTimeout, TcpDisconnect, TcpException TcpTimeout, TcpDisconnect, TcpException

View File

@ -2,12 +2,11 @@ import os
from netlib.http.http1 import read_response, read_request from netlib.http.http1 import read_response, read_request
from netlib import tcp, tutils, websockets, http from netlib import tcp, websockets, http, tutils, tservers
from netlib.http import status_codes from netlib.http import status_codes
from netlib.tutils import treq from netlib.tutils import treq
from netlib.exceptions import * from netlib.exceptions import *
from .. import tservers
class WebSocketsEchoHandler(tcp.BaseHandler): class WebSocketsEchoHandler(tcp.BaseHandler):