summaryrefslogtreecommitdiff
path: root/src/zope/interface/interface.py
diff options
context:
space:
mode:
authorGediminas Paulauskas <menesis@pov.lt>2011-08-04 14:18:37 +0000
committerGediminas Paulauskas <menesis@pov.lt>2011-08-04 14:18:37 +0000
commitef57ddec2565e2c252b1995e057d44d1145a5eed (patch)
tree6cc787af222620ee5f3c206cefb080301938d910 /src/zope/interface/interface.py
parent267cee1f19726c9f89fb6855db2e3455514e604d (diff)
downloadzope-interface-ef57ddec2565e2c252b1995e057d44d1145a5eed.tar.gz
Fix a regression introduced in 3.6.4, that made one zope.app.interface test fail
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)