Commit 300109ff authored by Tim Peters's avatar Tim Peters

Whitespace normalization.

parent 24455232
...@@ -270,7 +270,7 @@ class SGMLParser(markupbase.ParserBase): ...@@ -270,7 +270,7 @@ class SGMLParser(markupbase.ParserBase):
if not rest: if not rest:
attrvalue = attrname attrvalue = attrname
else: else:
if (attrvalue[:1] == "'" == attrvalue[-1:] or if (attrvalue[:1] == "'" == attrvalue[-1:] or
attrvalue[:1] == '"' == attrvalue[-1:]): attrvalue[:1] == '"' == attrvalue[-1:]):
# strip quotes # strip quotes
attrvalue = attrvalue[1:-1] attrvalue = attrvalue[1:-1]
......
...@@ -23,7 +23,7 @@ class TracebackCases(unittest.TestCase): ...@@ -23,7 +23,7 @@ class TracebackCases(unittest.TestCase):
def syntax_error_without_caret(self): def syntax_error_without_caret(self):
# XXX why doesn't compile raise the same traceback? # XXX why doesn't compile raise the same traceback?
import test.badsyntax_nocaret import test.badsyntax_nocaret
def syntax_error_bad_indentation(self): def syntax_error_bad_indentation(self):
compile("def spam():\n print 1\n print 2", "?", "exec") compile("def spam():\n print 1\n print 2", "?", "exec")
......
...@@ -355,12 +355,12 @@ class HandlerTests(unittest.TestCase): ...@@ -355,12 +355,12 @@ class HandlerTests(unittest.TestCase):
"file://%s%s" % (socket.gethostbyname('localhost'), urlpath), "file://%s%s" % (socket.gethostbyname('localhost'), urlpath),
] ]
try: try:
localaddr = socket.gethostbyname(socket.gethostname()) localaddr = socket.gethostbyname(socket.gethostname())
except socket.gaierror: except socket.gaierror:
localaddr = '' localaddr = ''
if localaddr: if localaddr:
urls.append("file://%s%s" % (localaddr, urlpath)) urls.append("file://%s%s" % (localaddr, urlpath))
for url in urls: for url in urls:
f = open(TESTFN, "wb") f = open(TESTFN, "wb")
try: try:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment