diff Tools/scripts/findnocoding.py @ 35465:3e5c07faab11 legacy-trunk

Whitespace normalization (via reindent.py).
author Tim Peters <tim.peters@gmail.com>
date Fri, 26 Aug 2005 15:20:46 +0000
parents 7caabc749975
children 5aea8b1fd262
line wrap: on
line diff
--- a/Tools/scripts/findnocoding.py	Fri Aug 26 14:33:57 2005 +0000
+++ b/Tools/scripts/findnocoding.py	Fri Aug 26 15:20:46 2005 +0000
@@ -26,8 +26,8 @@
                             if filename.endswith(".py"):
                                 yield os.path.join(root, filename)
     pysource = pysource()
-                
-            
+
+
     print >>sys.stderr, ("The pysource module is not available; "
                          "no sophisticated Python source file search will be done.")
 
@@ -56,19 +56,19 @@
 
     line1 = infile.readline()
     line2 = infile.readline()
-    
+
     if get_declaration(line1) or get_declaration(line2):
         # the file does have an encoding declaration, so trust it
         infile.close()
         return False
-    
+
     # check the whole file for non-ASCII characters
     rest = infile.read()
     infile.close()
-    
+
     if has_correct_encoding(line1+line2+rest, "ascii"):
         return False
-    
+
     return True
 
 
@@ -102,5 +102,3 @@
     result = needs_declaration(fullpath)
     if result:
         print fullpath
-
-