summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-08-25 22:05:39 +0000
committerTim Peters <tim.peters@gmail.com>2006-08-25 22:05:39 +0000
commit147f9ae6db79f3e7d1ae43e014a7447d1610c94c (patch)
treeb967d132261b5220165e701da972d7303f62085a /Lib
parentcd73a78b68cba0a68075fd50230c77b63fda2c73 (diff)
downloadcpython-git-147f9ae6db79f3e7d1ae43e014a7447d1610c94c.tar.gz
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_parser.py2
-rw-r--r--Lib/test/test_tokenize.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_parser.py b/Lib/test/test_parser.py
index bddec1658f..4bd2943b11 100644
--- a/Lib/test/test_parser.py
+++ b/Lib/test/test_parser.py
@@ -199,7 +199,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
yield x
else:
yield tree
-
+
terminals = list(walk(st2))
self.assertEqual([
(1, 'def', 1, 0),
diff --git a/Lib/test/test_tokenize.py b/Lib/test/test_tokenize.py
index 86f1b9b404..27de46ffac 100644
--- a/Lib/test/test_tokenize.py
+++ b/Lib/test/test_tokenize.py
@@ -33,7 +33,7 @@ NAME 'False' (3, 11) (3, 16)
COMMENT '# NEWLINE' (3, 17) (3, 26)
NEWLINE '\\n' (3, 26) (3, 27)
DEDENT '' (4, 0) (4, 0)
-
+
There will be a bunch more tests of specific source patterns.
@@ -43,7 +43,7 @@ regenerate the original program text from the tokens.
There are some standard formatting practices that are easy to get right.
>>> roundtrip("if x == 1:\\n"
-... " print x\\n")
+... " print x\\n")
if x == 1:
print x
@@ -53,7 +53,7 @@ whitespace after the colon. You can't see it, but it's there!
>>> roundtrip("if x == 1 : \\n"
... " print x\\n")
-if x == 1 :
+if x == 1 :
print x
Comments need to go in the right place.