summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/sgmllib.py2
-rw-r--r--Lib/test/test_traceback.py2
-rw-r--r--Lib/test/test_urllib2.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/Lib/sgmllib.py b/Lib/sgmllib.py
index 784dbe1b8a..3e85a910e0 100644
--- a/Lib/sgmllib.py
+++ b/Lib/sgmllib.py
@@ -270,7 +270,7 @@ class SGMLParser(markupbase.ParserBase):
if not rest:
attrvalue = attrname
else:
- if (attrvalue[:1] == "'" == attrvalue[-1:] or
+ if (attrvalue[:1] == "'" == attrvalue[-1:] or
attrvalue[:1] == '"' == attrvalue[-1:]):
# strip quotes
attrvalue = attrvalue[1:-1]
diff --git a/Lib/test/test_traceback.py b/Lib/test/test_traceback.py
index 269c6283c1..22c04567a7 100644
--- a/Lib/test/test_traceback.py
+++ b/Lib/test/test_traceback.py
@@ -23,7 +23,7 @@ class TracebackCases(unittest.TestCase):
def syntax_error_without_caret(self):
# XXX why doesn't compile raise the same traceback?
import test.badsyntax_nocaret
-
+
def syntax_error_bad_indentation(self):
compile("def spam():\n print 1\n print 2", "?", "exec")
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index c79a733e1a..58b54c1f9a 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -355,12 +355,12 @@ class HandlerTests(unittest.TestCase):
"file://%s%s" % (socket.gethostbyname('localhost'), urlpath),
]
try:
- localaddr = socket.gethostbyname(socket.gethostname())
+ localaddr = socket.gethostbyname(socket.gethostname())
except socket.gaierror:
localaddr = ''
if localaddr:
urls.append("file://%s%s" % (localaddr, urlpath))
-
+
for url in urls:
f = open(TESTFN, "wb")
try: