From e3d390e036430b9d7cc4b93679229fe118eb583a Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Wed, 27 May 2015 11:18:54 +0200 Subject: cleanup code with autopep8 run the following command: $ autopep8 -i -r -a -a . --- test/test_wsgi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_wsgi.py') diff --git a/test/test_wsgi.py b/test/test_wsgi.py index 1c8c5263..68a47769 100644 --- a/test/test_wsgi.py +++ b/test/test_wsgi.py @@ -1,4 +1,5 @@ -import cStringIO, sys +import cStringIO +import sys from netlib import wsgi, odict @@ -10,6 +11,7 @@ def tflow(): class TestApp: + def __init__(self): self.called = False @@ -22,6 +24,7 @@ class TestApp: class TestWSGI: + def test_make_environ(self): w = wsgi.WSGIAdaptor(None, "foo", 80, "version") tf = tflow() -- cgit v1.2.3 From 161bc2cfaa8b70b4c2cab5562784df34013452e1 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Wed, 27 May 2015 11:25:33 +0200 Subject: cleanup code with autoflake run the following command: $ autoflake -r -i --remove-all-unused-imports --remove-unused-variables . --- test/test_wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/test_wsgi.py') diff --git a/test/test_wsgi.py b/test/test_wsgi.py index 68a47769..41572d49 100644 --- a/test/test_wsgi.py +++ b/test/test_wsgi.py @@ -56,7 +56,7 @@ class TestWSGI: f.request.host = "foo" f.request.port = 80 wfile = cStringIO.StringIO() - err = w.serve(f, wfile) + w.serve(f, wfile) return wfile.getvalue() def test_serve_empty_body(self): @@ -72,7 +72,7 @@ class TestWSGI: try: raise ValueError("foo") except: - ei = sys.exc_info() + sys.exc_info() status = '200 OK' response_headers = [('Content-type', 'text/plain')] start_response(status, response_headers) -- cgit v1.2.3