Commit f7709f56 authored by Andreas Jung's avatar Andreas Jung

- Interface package: isImplementedBy() returned None instead of 0.

parent ddc33c2f
......@@ -14,7 +14,7 @@
"""Implemantation assertion facilities.
Revision information:
$Id: Implements.py,v 1.3 2002/08/14 21:35:32 mj Exp $
$Id: Implements.py,v 1.4 2003/02/12 08:46:09 andreasjung Exp $
"""
import Exceptions
......@@ -95,7 +95,7 @@ def visitImplements(implements, object, visitor, getInterface=None):
raise Exceptions.BadImplements(
"""__implements__ should be an interface or tuple,
not a %s""" % type(implements).__name__)
return None
return 0
def assertTypeImplements(type, interfaces):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment