[Python-checkins] r65387 - python/trunk/Lib/tokenize.py

brett.cannon python-checkins at python.org
Sat Aug 2 05:15:20 CEST 2008


Author: brett.cannon
Date: Sat Aug  2 05:15:20 2008
New Revision: 65387

Log:
Remove a tuple unpacking in a parameter list to remove a SyntaxWarning raised
while running under -3.


Modified:
   python/trunk/Lib/tokenize.py

Modified: python/trunk/Lib/tokenize.py
==============================================================================
--- python/trunk/Lib/tokenize.py	(original)
+++ python/trunk/Lib/tokenize.py	Sat Aug  2 05:15:20 2008
@@ -146,7 +146,9 @@
 
 class StopTokenizing(Exception): pass
 
-def printtoken(type, token, (srow, scol), (erow, ecol), line): # for testing
+def printtoken(type, token, srow_scol, erow_ecol, line): # for testing
+    srow, scol = srow_scol
+    erow, ecol = erow_ecol
     print "%d,%d-%d,%d:\t%s\t%s" % \
         (srow, scol, erow, ecol, tok_name[type], repr(token))
 


More information about the Python-checkins mailing list