[Python-checkins] r83853 - sandbox/trunk/2to3/lib2to3/fixer_util.py

benjamin.peterson python-checkins at python.org
Sun Aug 8 22:46:31 CEST 2010


Author: benjamin.peterson
Date: Sun Aug  8 22:46:31 2010
New Revision: 83853

Log:
use parens

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

Modified: sandbox/trunk/2to3/lib2to3/fixer_util.py
==============================================================================
--- sandbox/trunk/2to3/lib2to3/fixer_util.py	(original)
+++ sandbox/trunk/2to3/lib2to3/fixer_util.py	Sun Aug  8 22:46:31 2010
@@ -319,8 +319,8 @@
     # if that also fails, we stick to the beginning of the file
     if insert_pos == 0:
         for idx, node in enumerate(root.children):
-            if node.type == syms.simple_stmt and node.children and \
-               node.children[0].type == token.STRING:
+            if (node.type == syms.simple_stmt and node.children and
+               node.children[0].type == token.STRING):
                 insert_pos = idx + 1
                 break
 


More information about the Python-checkins mailing list