Sync with trunk r47367
[reactos.git] / lib / 3rdparty / freetype / src / tools / docmaker / utils.py
index e751c56..1d96658 100644 (file)
@@ -1,4 +1,4 @@
-#  Utils (c) 2002, 2004, 2007  David Turner <david@freetype.org>
+#  Utils (c) 2002, 2004, 2007, 2008  David Turner <david@freetype.org>
 #
 
 import string, sys, os, glob
@@ -11,7 +11,7 @@ output_dir = None
 # This function is used to sort the index.  It is a simple lexicographical
 # sort, except that it places capital letters before lowercase ones.
 #
-def index_sort( s1, s2 ):
+def  index_sort( s1, s2 ):
     if not s1:
         return -1
 
@@ -41,9 +41,10 @@ def index_sort( s1, s2 ):
 
     return 0
 
+
 # Sort input_list, placing the elements of order_list in front.
 #
-def sort_order_list( input_list, order_list ):
+def  sort_order_list( input_list, order_list ):
     new_list = order_list[:]
     for id in input_list:
         if not id in order_list:
@@ -51,12 +52,11 @@ def sort_order_list( input_list, order_list ):
     return new_list
 
 
-
 # Open the standard output to a given project documentation file.  Use
 # "output_dir" to determine the filename location if necessary and save the
 # old stdout in a tuple that is returned by this function.
 #
-def open_output( filename ):
+def  open_output( filename ):
     global output_dir
 
     if output_dir and output_dir != "":
@@ -71,25 +71,26 @@ def open_output( filename ):
 
 # Close the output that was returned by "close_output".
 #
-def close_output( output ):
+def  close_output( output ):
     output[0].close()
     sys.stdout = output[1]
 
 
 # Check output directory.
 #
-def check_output( ):
+def  check_output():
     global output_dir
     if output_dir:
         if output_dir != "":
             if not os.path.isdir( output_dir ):
-                sys.stderr.write( "argument" + " '" + output_dir + "' " +
+                sys.stderr.write( "argument" + " '" + output_dir + "' " + \
                                   "is not a valid directory" )
                 sys.exit( 2 )
         else:
             output_dir = None
 
-def file_exists( pathname ):
+
+def  file_exists( pathname ):
     """checks that a given file exists"""
     result = 1
     try:
@@ -102,9 +103,8 @@ def file_exists( pathname ):
     return result
 
 
-def make_file_list( args = None ):
+def  make_file_list( args = None ):
     """builds a list of input files from command-line arguments"""
-
     file_list = []
     # sys.stderr.write( repr( sys.argv[1 :] ) + '\n' )