diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-04 06:37:28 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-04 06:37:28 (GMT) |
commit | 83e7ccc9fdc9a5e1220fb14a173ed8f391380966 (patch) | |
tree | 663ed709ea31c2758739e59fefabab6e107951ff | |
parent | bc1c7a085449302edcef3e7c2faae2433a020e39 (diff) | |
download | cpython-83e7ccc9fdc9a5e1220fb14a173ed8f391380966.zip cpython-83e7ccc9fdc9a5e1220fb14a173ed8f391380966.tar.gz cpython-83e7ccc9fdc9a5e1220fb14a173ed8f391380966.tar.bz2 |
Whitespace normalization.
-rw-r--r-- | Lib/rfc822.py | 2 | ||||
-rw-r--r-- | Lib/test/test_long.py | 2 | ||||
-rw-r--r-- | Lib/test/test_pow.py | 1 | ||||
-rw-r--r-- | Lib/test/test_urllib2.py | 2 | ||||
-rwxr-xr-x | Tools/scripts/fixdiv.py | 8 |
5 files changed, 7 insertions, 8 deletions
diff --git a/Lib/rfc822.py b/Lib/rfc822.py index e69c4cb..b3f7fb2 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -967,7 +967,7 @@ def formatdate(timeval=None): timeval[2], ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"][timeval[1]-1], - timeval[0], timeval[3], timeval[4], timeval[5]) + timeval[0], timeval[3], timeval[4], timeval[5]) # When used as script, run a small test program. diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index ac345a6..e123638 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -357,7 +357,7 @@ def test_float_overflow(): "math.sqrt(huge)", "math.sqrt(mhuge)", # should do better "math.log10(huge)", "math.log10(mhuge)", # should do better "math.floor(huge)", "math.floor(mhuge)"]: - + try: eval(test, namespace) except OverflowError: diff --git a/Lib/test/test_pow.py b/Lib/test/test_pow.py index b315bd5..64c5890 100644 --- a/Lib/test/test_pow.py +++ b/Lib/test/test_pow.py @@ -118,4 +118,3 @@ for i in range(-10, 11): o = pow(long(i),j) % k n = pow(long(i),j,k) if o != n: print 'Integer mismatch:', i,j,k - diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py index 5b4c68c..129bf2c 100644 --- a/Lib/test/test_urllib2.py +++ b/Lib/test/test_urllib2.py @@ -18,7 +18,7 @@ if fname[1:2] == ":": # And more hacking to get it to work on MacOS. This assumes # urllib.pathname2url works, unfortunately... if os.name == 'mac': - fname = '/' + fname.replace(':', '/') + fname = '/' + fname.replace(':', '/') file_url = "file://%s" % fname f = urllib2.urlopen(file_url) diff --git a/Tools/scripts/fixdiv.py b/Tools/scripts/fixdiv.py index c6396d8..643a58a 100755 --- a/Tools/scripts/fixdiv.py +++ b/Tools/scripts/fixdiv.py @@ -230,10 +230,10 @@ def process(file, list): print "*** Bad warning for line %d:" % row, bad print "*", line elif intlong and not floatcomplex: - print "%dc%d" % (row, row) - print "<", line - print "---" - print ">", line[:col] + "/" + line[col:] + print "%dc%d" % (row, row) + print "<", line + print "---" + print ">", line[:col] + "/" + line[col:] elif floatcomplex and not intlong: print "True division / operator at line %d:" % row print "=", line |