From 7e33d2098c5017d10bfd96185dc5db460f8428a1 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 9 Mar 2020 17:12:22 +0100 Subject: remove unnecessary pass statements Reported-by: pylint --- wsgitools/filters.py | 2 -- wsgitools/scgi/forkpool.py | 1 - 2 files changed, 3 deletions(-) diff --git a/wsgitools/filters.py b/wsgitools/filters.py index ed976a2..60e4ebb 100644 --- a/wsgitools/filters.py +++ b/wsgitools/filters.py @@ -81,7 +81,6 @@ class BaseWSGIFilter(object): """This constructor does nothing and can safely be overwritten. It is only listed here to document that it must be callable without additional parameters.""" - pass def filter_environ(self, environ): """Receives a dict with the environment passed to the wsgi application and a C{dict} must be returned. The default is to return the same dict. @@ -137,7 +136,6 @@ class BaseWSGIFilter(object): return [] def handle_close(self): """This method is invoked after the request has finished.""" - pass __all__.append("WSGIFilterMiddleware") class WSGIFilterMiddleware(object): diff --git a/wsgitools/scgi/forkpool.py b/wsgitools/scgi/forkpool.py index 20943fc..361fb40 100644 --- a/wsgitools/scgi/forkpool.py +++ b/wsgitools/scgi/forkpool.py @@ -153,7 +153,6 @@ class SocketFileWrapper(object): return self.__next__() def flush(self): """see pep333""" - pass def write(self, data): """see pep333""" assert isinstance(data, bytes) -- cgit v1.2.3