[Python-checkins] r55942 - sandbox/trunk/2to3/fixes/util.py

collin.winter python-checkins at python.org
Wed Jun 13 00:47:16 CEST 2007


Author: collin.winter
Date: Wed Jun 13 00:47:09 2007
New Revision: 55942

Modified:
   sandbox/trunk/2to3/fixes/util.py
Log:
Whitespace fixes.

Modified: sandbox/trunk/2to3/fixes/util.py
==============================================================================
--- sandbox/trunk/2to3/fixes/util.py	(original)
+++ sandbox/trunk/2to3/fixes/util.py	Wed Jun 13 00:47:09 2007
@@ -21,7 +21,7 @@
 
 def LParen():
     return Leaf(token.LPAR, "(")
-    
+
 def RParen():
     return Leaf(token.RPAR, ")")
 
@@ -71,11 +71,11 @@
     return Node(syms.trailer, [Leaf(token.LBRACE, '['),
                                index_node,
                                Leaf(token.RBRACE, ']')])
-                               
+
 def String(string, prefix=None):
     """A string leaf"""
     return Leaf(token.STRING, string, prefix=prefix)
-    
+
 ###########################################################
 ### Determine whether a node represents a given literal
 ###########################################################
@@ -88,7 +88,7 @@
             and isinstance(node.children[1], Node)
             and isinstance(node.children[2], Leaf)
             and node.children[0].value == "("
-            and node.children[2].value == ")") 
+            and node.children[2].value == ")")
 
 def is_list(node):
     """Does the node represent a list literal?"""
@@ -103,7 +103,7 @@
 ### Common portability code. This allows fixers to do, eg,
 ###  "from fixes.util import set" and forget about it.
 ###########################################################
-       
+
 try:
     any = any
 except NameError:
@@ -117,7 +117,7 @@
     set = set
 except NameError:
     from sets import Set as set
-    
+
 try:
     reversed = reversed
 except NameError:


More information about the Python-checkins mailing list