[Zodb-checkins] CVS: Zope3/src/zope/interface - interface.py:1.6
Steve Alexander
steve@cat-box.net
Tue, 28 Jan 2003 06:25:26 -0500
Update of /cvs-repository/Zope3/src/zope/interface
In directory cvs.zope.org:/tmp/cvs-serv12743/src/zope/interface
Modified Files:
interface.py
Log Message:
whitespace and using False/True instead of 0/1 where appropriate.
=== Zope3/src/zope/interface/interface.py 1.5 => 1.6 ===
--- Zope3/src/zope/interface/interface.py:1.5 Sat Jan 25 00:13:44 2003
+++ Zope3/src/zope/interface/interface.py Tue Jan 28 06:25:22 2003
@@ -150,7 +150,7 @@
def isImplementedBy(self, object):
"""Does the given object implement the interface?"""
-
+
# OPT Cache implements lookups
implements = getImplements(object)
if implements is None:
@@ -170,7 +170,7 @@
self._getInterface)
)
cache[key] = r
-
+
return r
def isImplementedByInstancesOf(self, klass):
@@ -181,7 +181,7 @@
i, klass, self.isEqualOrExtendedBy, self._getInterface)
return False
- def names(self, all=0):
+ def names(self, all=False):
"""Return the attribute names defined by the interface."""
if not all:
return self.__attrs.keys()
@@ -197,7 +197,7 @@
def __iter__(self):
return iter(self.names(all=True))
- def namesAndDescriptions(self, all=0):
+ def namesAndDescriptions(self, all=False):
"""Return attribute names and descriptions defined by interface."""
if not all:
return self.__attrs.items()
@@ -428,7 +428,6 @@
for k, v in func.__dict__.items():
m.setTaggedValue(k, v)
-
return m