[Python-checkins] r52921 - sandbox/trunk/2to3/tests.py

guido.van.rossum python-checkins at python.org
Tue Dec 5 19:14:13 CET 2006


Author: guido.van.rossum
Date: Tue Dec  5 19:14:13 2006
New Revision: 52921

Modified:
   sandbox/trunk/2to3/tests.py
Log:
Fold two long lines.
This line, and those below, will be ignored--

M    2to3/tests.py


Modified: sandbox/trunk/2to3/tests.py
==============================================================================
--- sandbox/trunk/2to3/tests.py	(original)
+++ sandbox/trunk/2to3/tests.py	Tue Dec  5 19:14:13 2006
@@ -203,9 +203,11 @@
         pd = pytree.LeafPattern(1, "d", "pd")
         pe = pytree.LeafPattern(1, "e", "pe")
         pf = pytree.LeafPattern(1, "f", "pf")
-        pw = pytree.WildcardPattern([[pa, pb, pc], [pd, pe], [pa, pb], [pc, pd], [pe, pf]],
+        pw = pytree.WildcardPattern([[pa, pb, pc], [pd, pe],
+	                             [pa, pb], [pc, pd], [pe, pf]],
                                     min=1, max=4, name="pw")
-        self.assertEqual([x[0] for x in pw.generate_matches(leaves)], [3, 5, 2, 4, 6])
+        self.assertEqual([x[0] for x in pw.generate_matches(leaves)],
+	                 [3, 5, 2, 4, 6])
         pr = pytree.NodePattern(type=1000, content=[pw], name="pr")
         matches = list(pytree.generate_matches([pr], [root]))
         self.assertEqual(len(matches), 1)


More information about the Python-checkins mailing list