[pypy-commit] lang-scheme default: fix off by one in errormessage

boemmels noreply at buildbot.pypy.org
Sun Feb 26 13:27:07 CET 2012


Author: Juergen Boemmels <boemmels at web.de>
Branch: 
Changeset: r41:ae3af9ef8b39
Date: 2012-02-18 11:39 +0100
http://bitbucket.org/pypy/lang-scheme/changeset/ae3af9ef8b39/

Log:	fix off by one in errormessage

diff --git a/scheme/procedure.py b/scheme/procedure.py
--- a/scheme/procedure.py
+++ b/scheme/procedure.py
@@ -12,7 +12,7 @@
     def procedure(self, ctx, lst):
         if len(lst) == 0:
             if self.default_result is None:
-                raise WrongArgsNumber(len(lst), ">1")
+                raise WrongArgsNumber(len(lst), ">=1")
 
             return self.default_result
 
@@ -405,7 +405,7 @@
 
     def procedure_tr(self, ctx, lst):
         if len(lst) < 2:
-            raise WrongArgsNumber(len(lst), ">2")
+            raise WrongArgsNumber(len(lst), ">=2")
 
         w_proc = lst[0]
         if not isinstance(w_proc, W_Procedure):


More information about the pypy-commit mailing list