summaryrefslogtreecommitdiff
path: root/src/zope/interface/interface.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/interface/interface.py')
-rw-r--r--src/zope/interface/interface.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zope/interface/interface.py b/src/zope/interface/interface.py
index 6b2d513..44c631d 100644
--- a/src/zope/interface/interface.py
+++ b/src/zope/interface/interface.py
@@ -682,7 +682,8 @@ class InterfaceClass(Element, InterfaceBase, Specification):
return (n1 > n2) - (n1 < n2)
def __hash__(self):
- return hash((self.__name__, self.__module__))
+ return hash((getattr(self, '__name__', ''),
+ getattr(self, '__module__', '')))
def __eq__(self, other):
c = self.__cmp(self, other)