mailr12134 - /1.3/test_suite/formatting.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 04, 2011 - 12:40:
Author: bugman
Date: Tue Jan  4 12:40:54 2011
New Revision: 12134

URL: http://svn.gna.org/viewcvs/relax?rev=12134&view=rev
Log:
Alphabetical ordering of functions, and comment updates.


Modified:
    1.3/test_suite/formatting.py

Modified: 1.3/test_suite/formatting.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/formatting.py?rev=12134&r1=12133&r2=12134&view=diff
==============================================================================
--- 1.3/test_suite/formatting.py (original)
+++ 1.3/test_suite/formatting.py Tue Jan  4 12:40:54 2011
@@ -1,6 +1,6 @@
 
###############################################################################
 #                                                                            
 #
-# Copyright (C) 2007 Edward d'Auvergne                                       
 #
+# Copyright (C) 2007-2011 Edward d'Auvergne                                  
 #
 #                                                                            
 #
 # This file is part of the program relax.                                    
 #
 #                                                                            
 #
@@ -20,7 +20,28 @@
 #                                                                            
 #
 
###############################################################################
 
+# Python module imports.
 import sys
+
+
+def subtitle(text):
+    """Function for printing the subtitles.
+
+    @param text:    The text of the subtitle to be printed.
+    @type text:     str
+    """
+
+    # The width of the subtitle string.
+    width = len(text) + 2
+
+    # Text.
+    sys.stdout.write("# %s\n" % text)
+
+    # Bottom bar.
+    sys.stdout.write("#" * width)
+
+    # Spacing.
+    sys.stdout.write("\n\n")
 
 
 def summary_line(name, passed, width=64):
@@ -50,26 +71,6 @@
         sys.stdout.write(" %-10s\n" % "[ Failed ]")
 
 
-def subtitle(text):
-    """Function for printing the subtitles.
-
-    @param text:    The text of the subtitle to be printed.
-    @type text:     str
-    """
-
-    # The width of the subtitle string.
-    width = len(text) + 2
-
-    # Text.
-    sys.stdout.write("# %s\n" % text)
-
-    # Bottom bar.
-    sys.stdout.write("#" * width)
-
-    # Spacing.
-    sys.stdout.write("\n\n")
-
-
 def title(text):
     """Function for printing the titles.
 




Related Messages


Powered by MHonArc, Updated Tue Jan 04 13:00:02 2011