[Python-checkins] r69681 - sandbox/trunk/2to3/lib2to3/patcomp.py

benjamin.peterson python-checkins at python.org
Mon Feb 16 18:43:10 CET 2009


Author: benjamin.peterson
Date: Mon Feb 16 18:43:09 2009
New Revision: 69681

Log:
use a set

Modified:
   sandbox/trunk/2to3/lib2to3/patcomp.py

Modified: sandbox/trunk/2to3/lib2to3/patcomp.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/patcomp.py	(original)
+++ sandbox/trunk/2to3/lib2to3/patcomp.py	Mon Feb 16 18:43:09 2009
@@ -30,7 +30,7 @@
 
 def tokenize_wrapper(input):
     """Tokenizes a string suppressing significant whitespace."""
-    skip = (token.NEWLINE, token.INDENT, token.DEDENT)
+    skip = set((token.NEWLINE, token.INDENT, token.DEDENT))
     tokens = tokenize.generate_tokens(driver.generate_lines(input).next)
     for quintuple in tokens:
         type, value, start, end, line_text = quintuple


More information about the Python-checkins mailing list