mailr3934 - /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:51:
Author: bugman
Date: Sun Nov 25 18:51:13 2007
New Revision: 3934

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


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=3934&r1=3933&r2=3934&view=diff
==============================================================================
--- 1.3/generic_fns/pipes.py (original)
+++ 1.3/generic_fns/pipes.py Sun Nov 25 18:51:13 2007
@@ -153,8 +153,13 @@
     """
 
     # No supplied data pipe and no current data pipe.
-    if pipe_name == None and current() == None:
-        raise RelaxNoPipeError
+    if pipe_name == None:
+        # Get the current pipe.
+        pipe_name = current()
+
+        # Still no luck.
+        if pipe_name == None:
+            raise RelaxNoPipeError
 
     # Test if the data pipe exists.
     if not relax_data_store.has_key(pipe_name):




Related Messages


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