diff options
| author | ianb <devnull@localhost> | 2006-10-20 22:08:05 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2006-10-20 22:08:05 +0000 |
| commit | 44fa5352360b78696c3d81cafa8e24eaa4f6c3ed (patch) | |
| tree | ccde2c446f352cb5344f3c9a40090f12290bf9a7 /paste/debug | |
| parent | 9eadab4b64440958f99a2fa1798227bb4a53193c (diff) | |
| download | paste-44fa5352360b78696c3d81cafa8e24eaa4f6c3ed.tar.gz | |
A big commit, primarily aesthetic/whitespace in nature. This is the result of running pylint over the codebase. Some minor/hard-to-reach typos were also picked up.
Diffstat (limited to 'paste/debug')
| -rwxr-xr-x | paste/debug/debugapp.py | 4 | ||||
| -rwxr-xr-x | paste/debug/doctest_webapp.py | 10 | ||||
| -rwxr-xr-x | paste/debug/testserver.py | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/paste/debug/debugapp.py b/paste/debug/debugapp.py index 0e4e82f..caabd03 100755 --- a/paste/debug/debugapp.py +++ b/paste/debug/debugapp.py @@ -60,8 +60,8 @@ class SlowConsumer: '<input type="submit" >\n' '</form></body></html>\n') print "bingles" - start_response("200 OK",[('Content-Type', 'text/html'), - ('Content-Length', len(body))]) + start_response("200 OK", [('Content-Type', 'text/html'), + ('Content-Length', len(body))]) return [body] def make_test_app(global_conf): diff --git a/paste/debug/doctest_webapp.py b/paste/debug/doctest_webapp.py index a0ca130..935b291 100755 --- a/paste/debug/doctest_webapp.py +++ b/paste/debug/doctest_webapp.py @@ -167,7 +167,6 @@ def show(path_info, example_name): print result def html_matches(pattern, text): - return True regex = re.escape(pattern) regex = regex.replace(r'\.\.\.', '.*') regex = re.sub(r'0x[0-9a-f]+', '.*', regex) @@ -402,10 +401,11 @@ class LongFormDocTestParser(doctest.DocTestParser): # Create an Example, and add it to the list. if not self._IS_BLANK_OR_COMMENT(source): # @@: Erg, this is the only line I need to change... - output.append( doctest.Example(source, want, exc_msg, - lineno=lineno, - indent=min_indent+len(m.group('indent') or m.group('runindent')), - options=options) ) + output.append(doctest.Example( + source, want, exc_msg, + lineno=lineno, + indent=min_indent+len(m.group('indent') or m.group('runindent')), + options=options)) # Update lineno (lines inside this example) lineno += string.count('\n', m.start(), m.end()) # Update charno. diff --git a/paste/debug/testserver.py b/paste/debug/testserver.py index 3bc2bd9..26c477a 100755 --- a/paste/debug/testserver.py +++ b/paste/debug/testserver.py @@ -61,7 +61,7 @@ class WSGIRegressionServer(WSGIServer): [self.pending.append(True) for x in range(count)] def serve(application, host=None, port=None, handler=None): - server = WSGIRegressionServer(application,host,port,handler) + server = WSGIRegressionServer(application, host, port, handler) print "serving on %s:%s" % server.server_address server.serve_forever() return server |
