mailr9380 - /1.3/prompt/check.py


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

Header


Content

Posted by edward on August 24, 2009 - 19:08:
Author: bugman
Date: Mon Aug 24 19:08:55 2009
New Revision: 9380

URL: http://svn.gna.org/viewcvs/relax?rev=9380&view=rev
Log:
Bug fixes for the is_num_list() and is_num_tuple() functions.


Modified:
    1.3/prompt/check.py

Modified: 1.3/prompt/check.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/check.py?rev=9380&r1=9379&r2=9380&view=diff
==============================================================================
--- 1.3/prompt/check.py (original)
+++ 1.3/prompt/check.py Mon Aug 24 19:08:55 2009
@@ -229,7 +229,7 @@
             raise RelaxListNumError(name, arg, size)
 
     # Fail if not numbers.
-    for i in range(len(params)):
+    for i in range(len(arg)):
         if (not isinstance(arg[i], float) and not isinstance(arg[i], int)) 
or isinstance(arg, bool):
             if can_be_none:
                 raise RelaxNoneListNumError(name, arg)
@@ -265,7 +265,7 @@
         raise RelaxTupleNumError(name, arg, size)
 
     # Fail if not numbers.
-    for i in range(len(params)):
+    for i in range(len(arg)):
         if (not isinstance(arg[i], float) and not isinstance(arg[i], int)) 
or isinstance(arg, bool):
             raise RelaxTupleNumError(name, arg)
 




Related Messages


Powered by MHonArc, Updated Mon Aug 24 20:00:06 2009