Skip to content

Commit

Permalink
PEP257fy codebase: eliminated D202 pep257 linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Mar 16, 2017
1 parent 2eecc67 commit 4a572b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion cheroot/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,6 @@ def read_request_line(self):

def read_request_headers(self):
"""Read self.rfile into self.inheaders. Return success."""

# then all the http headers
try:
read_headers(self.rfile, self.inheaders)
Expand Down
4 changes: 1 addition & 3 deletions cheroot/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ def get_environ(self):
raise NotImplemented

def respond(self):
"""Process the current request."""
"""Process the current request.
"""
From PEP 333:
The start_response callable must not actually transmit
Expand All @@ -94,7 +93,6 @@ def respond(self):
a NON-EMPTY string, or upon the application's first
invocation of the write() callable.
"""

response = self.req.server.wsgi_app(self.env, self.start_response)
try:
for chunk in filter(None, response):
Expand Down

0 comments on commit 4a572b5

Please sign in to comment.