beeseek-devs team mailing list archive
-
beeseek-devs team
-
Mailing list archive
-
Message #00111
[Branch ~beeseek-devs/beeseek/trunk] Rev 197: Fix for bug 312761.
------------------------------------------------------------
revno: 197
committer: Andrea Corbellini <andrea.corbellini@xxxxxxxxxxx>
branch nick: interfaces
timestamp: Wed 2009-01-14 17:32:12 +0100
message:
Fix for bug 312761.
modified:
beeseek/interfaces.py
=== modified file 'beeseek/interfaces.py'
--- a/beeseek/interfaces.py 2009-01-14 14:16:44 +0000
+++ b/beeseek/interfaces.py 2009-01-14 16:32:12 +0000
@@ -113,8 +113,13 @@
value = getattr(interface, name)
if isinstance(value, MethodType):
- # The attribute is a function; check the number of
- # arguments
+ # The attribute should be a function
+ if not isinstance(attrs[name], MethodType):
+ warnings.warn('%s should be a method' % name,
+ ImplementationWarning, 2)
+ continue
+
+ # Check the number of arguments
needargs = get_argcount(value)
usedargs = get_argcount(attrs[name])
if (needargs[1] and (needargs != usedargs)
--
BeeSeek mainline
https://code.launchpad.net/~beeseek-devs/beeseek/trunk
You are receiving this branch notification because you are subscribed to it.