[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/utilities.py
Removed trailing whitespaces
Dmitry Vasiliev
dima at hlabs.spb.ru
Mon May 30 06:50:40 EDT 2005
Log message for revision 30551:
Removed trailing whitespaces
Changed:
U Zope3/trunk/src/zope/app/apidoc/utilities.py
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/utilities.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/utilities.py 2005-05-27 21:59:02 UTC (rev 30550)
+++ Zope3/trunk/src/zope/app/apidoc/utilities.py 2005-05-30 10:50:09 UTC (rev 30551)
@@ -51,7 +51,7 @@
def get(self, key, default=None):
raise NotImplemented
-
+
def items(self):
raise NotImplemented
@@ -70,7 +70,7 @@
def __iter__(self):
return self.values().__iter__()
-
+
def values(self):
return map(lambda x: x[1], self.items())
@@ -102,16 +102,16 @@
if id == 'CheckerPublic':
id = 'zope.Public'
return id
-
+
def getPermissionIds(name, checker=_marker, klass=_marker):
"""Get the permissions of an attribute."""
assert (klass is _marker) != (checker is _marker)
entry = {}
-
+
if klass is not _marker:
checker = getCheckerForInstancesOf(klass)
-
+
if checker is not None and INameBasedChecker.providedBy(checker):
entry['read_perm'] = _evalId(checker.permission_id(name)) \
or _('n/a')
@@ -127,7 +127,7 @@
"""Return the signature of a function or method."""
if not isinstance(func, (types.FunctionType, types.MethodType)):
raise TypeError("func must be a function or method")
-
+
args, varargs, varkw, defaults = inspect.getargspec(func)
placeholder = object()
sig = '('
@@ -192,7 +192,7 @@
for base in interface.getBases():
interfaces[base] = 1
interfaces = interfaces.keys()
-
+
for interface in interfaces:
if name in interface.names():
if asPath:
@@ -231,7 +231,7 @@
'structuredtext': 'zope.source.stx',
'restructuredtext': 'zope.source.rest'
}
-
+
def getDocFormat(module):
"""Convert a module's __docformat__ specification to a renderer source
id"""
@@ -250,7 +250,7 @@
if format is None:
format = 'zope.source.stx'
-
+
assert format in _format_dict.values()
source = zapi.createObject(format, text)
More information about the Zope3-Checkins
mailing list