[pybank] Fix typo in the check for number of args



commit acc6cd828409d97013ca4f08c57f4f429433a36b
Author: Tomeu Vizoso <tomeu sugarlabs org>
Date:   Thu May 21 18:34:09 2009 +0200

    Fix typo in the check for number of args
---
 bank/btypes.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/bank/btypes.py b/bank/btypes.py
index 05b95d6..32c0070 100644
--- a/bank/btypes.py
+++ b/bank/btypes.py
@@ -113,7 +113,7 @@ class Callable(object):
 
         if len(totalInArgs) != requiredArgs:
             raise TypeError('%r requires %d arguments, passed %d instead.' % (
-                self, requiredArgs, totalInArgs))
+                self, requiredArgs, len(totalInArgs)))
 
         for i, value in enumerate(totalInArgs):
             if not is_method or i > 0:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]