summaryrefslogtreecommitdiff
path: root/paste/debug
diff options
context:
space:
mode:
authorianb <devnull@localhost>2006-10-20 22:08:05 +0000
committerianb <devnull@localhost>2006-10-20 22:08:05 +0000
commit44fa5352360b78696c3d81cafa8e24eaa4f6c3ed (patch)
treeccde2c446f352cb5344f3c9a40090f12290bf9a7 /paste/debug
parent9eadab4b64440958f99a2fa1798227bb4a53193c (diff)
downloadpaste-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-xpaste/debug/debugapp.py4
-rwxr-xr-xpaste/debug/doctest_webapp.py10
-rwxr-xr-xpaste/debug/testserver.py2
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