[Python-checkins] r46032 - in python/trunk/Lib: lib-tk/turtle.py locale.py

tim.peters python-checkins at python.org
Thu May 18 04:06:41 CEST 2006


Author: tim.peters
Date: Thu May 18 04:06:40 2006
New Revision: 46032

Modified:
   python/trunk/Lib/lib-tk/turtle.py
   python/trunk/Lib/locale.py
Log:
Whitespace normalization.


Modified: python/trunk/Lib/lib-tk/turtle.py
==============================================================================
--- python/trunk/Lib/lib-tk/turtle.py	(original)
+++ python/trunk/Lib/lib-tk/turtle.py	Thu May 18 04:06:40 2006
@@ -754,11 +754,11 @@
 
     Setting either width or height to None before drawing will force
       use of default geometry as in older versions of turtle.py
-    
+
     startx: starting position in pixels from the left edge of the screen.
       Default is to center window. Setting startx to None is the default
       and centers window horizontally on screen.
-    
+
     starty: starting position in pixels from the top edge of the screen.
       Default is to center window. Setting starty to None is the default
       and centers window vertically on screen.
@@ -776,7 +776,7 @@
 
     forces use of default geometry as in older versions of turtle.py
     """
-    
+
     global _width, _height, _startx, _starty
 
     width = geometry.get('width',_width)
@@ -790,7 +790,7 @@
         _height = height
     else:
         raise ValueError, "height can not be less than 0"
-        
+
     startx = geometry.get('startx', _startx)
     if startx >= 0 or startx == None:
         _startx = _startx
@@ -813,7 +813,7 @@
         # center window on screen
         if _startx is None:
             _startx = (_root.winfo_screenwidth() - _width) / 2
- 
+
         if _starty is None:
             _starty = (_root.winfo_screenheight() - _height) / 2
 
@@ -827,7 +827,7 @@
     Example:
     >>> title("My Window")
     """
-    
+
     global _title
     _title = title
 
@@ -904,10 +904,10 @@
             pendown = True
         circle(r,10)
     sleep(2)
-   
-    reset() 
+
+    reset()
     left(90)
-    
+
     # draw a series of triangles
     l = 10
     color("green")
@@ -936,7 +936,7 @@
     forward(90)
     color("red")
     speed('fastest')
-    down(); 
+    down();
 
     # create a second turtle and make the original pursue and catch it
     turtle=Turtle()
@@ -963,7 +963,7 @@
         forward(4)
     write("CAUGHT! ", move=True)
 
-    
+
 
 if __name__ == '__main__':
     from time import sleep

Modified: python/trunk/Lib/locale.py
==============================================================================
--- python/trunk/Lib/locale.py	(original)
+++ python/trunk/Lib/locale.py	Thu May 18 04:06:40 2006
@@ -132,7 +132,7 @@
 def format(percent, value, grouping=False, monetary=False, *additional):
     """Returns the locale-aware substitution of a %? specifier
     (percent).
-    
+
     additional is for format strings which contain one or more
     '*' modifiers."""
     # this is only for one-percent-specifier strings and this should be checked


More information about the Python-checkins mailing list