[Python-checkins] r43560 - in python/trunk/Lib: sgmllib.py test/test_traceback.py test/test_urllib2.py

tim.peters python-checkins at python.org
Mon Apr 3 04:46:45 CEST 2006


Author: tim.peters
Date: Mon Apr 3 04:46:44 2006
New Revision: 43560
Modified:
 python/trunk/Lib/sgmllib.py
 python/trunk/Lib/test/test_traceback.py
 python/trunk/Lib/test/test_urllib2.py
Log:
Whitespace normalization.
Modified: python/trunk/Lib/sgmllib.py
==============================================================================
--- python/trunk/Lib/sgmllib.py	(original)
+++ python/trunk/Lib/sgmllib.py	Mon Apr 3 04:46:44 2006
@@ -270,7 +270,7 @@
 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]
Modified: python/trunk/Lib/test/test_traceback.py
==============================================================================
--- python/trunk/Lib/test/test_traceback.py	(original)
+++ python/trunk/Lib/test/test_traceback.py	Mon Apr 3 04:46:44 2006
@@ -23,7 +23,7 @@
 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")
 
Modified: python/trunk/Lib/test/test_urllib2.py
==============================================================================
--- python/trunk/Lib/test/test_urllib2.py	(original)
+++ python/trunk/Lib/test/test_urllib2.py	Mon Apr 3 04:46:44 2006
@@ -355,12 +355,12 @@
 "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:


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /