[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/folder/folder.py
Fixed methods documentation
Dmitry Vasiliev
dima at hlabs.spb.ru
Mon Feb 13 09:46:55 EST 2006
Log message for revision 41614:
Fixed methods documentation
Changed:
U Zope3/trunk/src/zope/app/folder/folder.py
-=-
Modified: Zope3/trunk/src/zope/app/folder/folder.py
===================================================================
--- Zope3/trunk/src/zope/app/folder/folder.py 2006-02-13 12:15:50 UTC (rev 41613)
+++ Zope3/trunk/src/zope/app/folder/folder.py 2006-02-13 14:46:55 UTC (rev 41614)
@@ -56,18 +56,14 @@
return self.data.items()
def __getitem__(self, name):
- """Return the named object, or the value of the default
- argument if given and the named object is not found.
- If no default is given and the object is not found a
- ``KeyError`` is raised.
+ """Return the named object, or raise ``KeyError`` if the object
+ is not found.
"""
return self.data[name]
def get(self, name, default=None):
"""Return the named object, or the value of the `default`
- argument if given and the named object is not found.
- If no `default` is given and the object is not found a
- ``KeyError`` is raised.
+ argument if the object is not found.
"""
return self.data.get(name, default)
More information about the Zope3-Checkins
mailing list