Skip to content

Commit

Permalink
PEP257fy codebase: eliminated D211 pep257 linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Mar 16, 2017
1 parent 37dc94e commit ac7982f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 23 deletions.
3 changes: 0 additions & 3 deletions cheroot/makefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


class BufferedWriter(io.BufferedWriter):

"""Faux file object attached to a socket object."""

def write(self, b):
Expand Down Expand Up @@ -46,7 +45,6 @@ def MakeFile_PY3(sock, mode='r', bufsize=io.DEFAULT_BUFFER_SIZE):


class MakeFile_PY2(getattr(socket, '_fileobject', object)):

"""Faux file object attached to a socket object."""

def __init__(self, *args, **kwargs):
Expand Down Expand Up @@ -87,7 +85,6 @@ def recv(self, size):
raise

class FauxSocket(object):

"""Faux socket with the minimal interface required by pypy."""

def _reuse(self):
Expand Down
7 changes: 0 additions & 7 deletions cheroot/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ def read_headers(rfile, hdict=None):


class SizeCheckWrapper(object):

"""Wraps a file-like object, raising MaxSizeExceeded if too large."""

def __init__(self, rfile, maxlen):
Expand Down Expand Up @@ -256,7 +255,6 @@ def next(self):


class KnownLengthRFile(object):

"""Wraps a file-like object, returning an empty string when exhausted."""

def __init__(self, rfile, content_length):
Expand Down Expand Up @@ -313,7 +311,6 @@ def __next__(self):


class ChunkedRFile(object):

"""Wraps a file-like object, returning an empty string when exhausted.
This class is intended to provide a conforming wsgi.input value for
Expand Down Expand Up @@ -455,7 +452,6 @@ def close(self):


class HTTPRequest(object):

"""An HTTP Request (and response).
A single HTTP connection may consist of multiple request/response pairs.
Expand Down Expand Up @@ -906,7 +902,6 @@ def send_headers(self):


class HTTPConnection(object):

"""An HTTP connection (active socket).
server: the Server object which received this connection.
Expand Down Expand Up @@ -1081,7 +1076,6 @@ def prevent_socket_inheritance(sock):


class HTTPServer(object):

"""An HTTP server."""

_bind_addr = '127.0.0.1'
Expand Down Expand Up @@ -1530,7 +1524,6 @@ def stop(self):


class Gateway(object):

"""A base class to interface HTTPServer with other systems, such as WSGI."""

def __init__(self, req):
Expand Down
1 change: 0 additions & 1 deletion cheroot/ssl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
class Adapter(object):

"""Base class for SSL driver library adapters.
Required methods:
Expand Down
3 changes: 0 additions & 3 deletions cheroot/ssl/pyopenssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@


class SSL_fileobject(MakeFile):

"""SSL file object attached to a socket object."""

ssl_timeout = 3
Expand Down Expand Up @@ -113,7 +112,6 @@ def send(self, *args, **kwargs):


class SSLConnection:

"""A thread-safe wrapper for an SSL.Connection.
``*args``: the arguments to create the wrapped ``SSL.Connection(*args)``.
Expand Down Expand Up @@ -149,7 +147,6 @@ def shutdown(self, *args):


class pyOpenSSLAdapter(Adapter):

"""A wrapper for integrating pyOpenSSL with CherryPy."""

context = None
Expand Down
1 change: 0 additions & 1 deletion cheroot/test/webtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ def printErrors(self):


class TerseTestRunner(unittest.TextTestRunner):

"""A test runner class that displays results in textual form."""

def _makeResult(self):
Expand Down
3 changes: 0 additions & 3 deletions cheroot/workers/threadpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@


class TrueyZero(object):

"""An object which equals and does math like the integer 0 but evals True."""

def __add__(self, other):
Expand All @@ -29,7 +28,6 @@ def __radd__(self, other):


class WorkerThread(threading.Thread):

"""Thread which continuously polls a Queue for Connection objects.
Due to the timing issues of polling a Queue, a WorkerThread does not
Expand Down Expand Up @@ -115,7 +113,6 @@ def run(self):


class ThreadPool(object):

"""A Request Queue for an HTTPServer which pools threads.
ThreadPool objects must provide min, get(), put(obj), start()
Expand Down
5 changes: 0 additions & 5 deletions cheroot/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def my_crazy_app(environ, start_response):


class Server(server.HTTPServer):

"""A subclass of HTTPServer which calls a WSGI application."""

wsgi_version = (1, 0)
Expand Down Expand Up @@ -68,7 +67,6 @@ def _set_numthreads(self, value):


class Gateway(server.Gateway):

"""A base class to interface HTTPServer with WSGI."""

def __init__(self, req):
Expand Down Expand Up @@ -189,7 +187,6 @@ def write(self, chunk):


class Gateway_10(Gateway):

"""A Gateway class to interface HTTPServer with WSGI 1.0.x."""

def get_environ(self):
Expand Down Expand Up @@ -248,7 +245,6 @@ def get_environ(self):


class Gateway_u0(Gateway_10):

"""A Gateway class to interface HTTPServer with WSGI u.0.
WSGI u.0 is an experimental protocol, which uses unicode for keys
Expand Down Expand Up @@ -300,7 +296,6 @@ def _decode_value(item):


class PathInfoDispatcher(object):

"""A WSGI dispatcher for dispatch based on the PATH_INFO.
apps: a dict or list of (path_prefix, app) pairs.
Expand Down

0 comments on commit ac7982f

Please sign in to comment.