mailr4577 - /1.3/relax_io.py


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

Header


Content

Posted by sebastien . morin . 1 on January 09, 2008 - 19:32:
Author: semor
Date: Wed Jan  9 19:32:12 2008
New Revision: 4577

URL: http://svn.gna.org/viewcvs/relax?rev=4577&view=rev
Log:
Changed all instances of the 'print_flag' arg to 'verbosity' in 'relax_io.py'.


Modified:
    1.3/relax_io.py

Modified: 1.3/relax_io.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/relax_io.py?rev=4577&r1=4576&r2=4577&view=diff
==============================================================================
--- 1.3/relax_io.py (original)
+++ 1.3/relax_io.py Wed Jan  9 19:32:12 2008
@@ -458,11 +458,11 @@
         return basename(root)
 
 
-    def logging_off(self, file_name=None, dir=None, print_flag=1):
+    def logging_off(self, file_name=None, dir=None, verbosity=1):
         """Function for turning logging and teeing off."""
 
         # Print out.
-        if print_flag:
+        if verbosity:
             print "Redirecting the sys.stdin IO stream to the python stdin 
IO stream."
             print "Redirecting the sys.stdout IO stream to the python stdout 
IO stream."
             print "Redirecting the sys.stderr IO stream to the python stderr 
IO stream."
@@ -473,14 +473,14 @@
         sys.stderr = self.python_stderr
 
 
-    def tee(self, file_name=None, dir=None, compress_type=0, print_flag=1):
+    def tee(self, file_name=None, dir=None, compress_type=0, verbosity=1):
         """Function for turning logging on."""
 
         # Tee file.
-        self.tee_file, file_path = self.open_write_file(file_name=file_name, 
dir=dir, force=1, compress_type=compress_type, print_flag=print_flag, 
return_path=1)
+        self.tee_file, file_path = self.open_write_file(file_name=file_name, 
dir=dir, force=1, compress_type=compress_type, verbosity=verbosity, 
return_path=1)
 
         # Print out.
-        if print_flag:
+        if verbosity:
             print "Redirecting the sys.stdin IO stream to the python stdin 
IO stream."
             print "Redirecting the sys.stdout IO stream to both the python 
stdout IO stream and the log file '%s'." % file_path
             print "Redirecting the sys.stderr IO stream to both the python 
stderr IO stream and the log file '%s'." % file_path




Related Messages


Powered by MHonArc, Updated Wed Jan 09 19:40:09 2008