mailr3933 - /1.3/generic_fns/pipes.py


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

Header


Content

Posted by edward on November 25, 2007 - 18:48:
Author: bugman
Date: Sun Nov 25 18:44:10 2007
New Revision: 3933

URL: http://svn.gna.org/viewcvs/relax?rev=3933&view=rev
Log:
Bug fix for the generic_fns.pipes.current() function.

The function now returns the current pipe rather than printing it!


Modified:
    1.3/generic_fns/pipes.py

Modified: 1.3/generic_fns/pipes.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/pipes.py?rev=3933&r1=3932&r2=3933&view=diff
==============================================================================
--- 1.3/generic_fns/pipes.py (original)
+++ 1.3/generic_fns/pipes.py Sun Nov 25 18:44:10 2007
@@ -89,9 +89,13 @@
 
 
 def current():
-    """Print the name of the current data pipe."""
+    """Return the name of the current data pipe.
+    
+    @return:        The name of the current data pipe.
+    @type return:   str
+    """
 
-    print relax_data_store.current_pipe
+    return relax_data_store.current_pipe
 
 
 def delete(pipe_name=None):




Related Messages


Powered by MHonArc, Updated Sun Nov 25 19:00:23 2007