[Python-checkins] r83852 - sandbox/trunk/2to3/lib2to3/fixer_util.py
benjamin.peterson
python-checkins at python.org
Sun Aug 8 22:45:48 CEST 2010
Author: benjamin.peterson
Date: Sun Aug 8 22:45:44 2010
New Revision: 83852
Log:
wrap with 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:45:44 2010
@@ -295,8 +295,8 @@
""" Works like `does_tree_import` but adds an import statement
if it was not imported. """
def is_import_stmt(node):
- return node.type == syms.simple_stmt and node.children and \
- is_import(node.children[0])
+ return (node.type == syms.simple_stmt and node.children and
+ is_import(node.children[0]))
root = find_root(node)
More information about the Python-checkins
mailing list