[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/RDB - ZopeConnection.py:1.4
Albertas Agejevas
alga@codeworks.lt
Sat, 10 Aug 2002 11:58:53 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/RDB
In directory cvs.zope.org:/tmp/cvs-serv16317
Modified Files:
ZopeConnection.py
Log Message:
__getattr__ is only called when attribute is not found in __dict__ so
there's no reason to check for it again.
=== Zope3/lib/python/Zope/App/RDB/ZopeConnection.py 1.3 => 1.4 ===
--- Zope3/lib/python/Zope/App/RDB/ZopeConnection.py:1.3 Wed Jul 24 19:17:04 2002
+++ Zope3/lib/python/Zope/App/RDB/ZopeConnection.py Sat Aug 10 11:58:53 2002
@@ -31,7 +31,7 @@
def __getattr__(self, key):
# The IDBIConnection interface is hereby implemented
- return self.__dict__.get(key, getattr(self.conn, key))
+ return getattr(self.conn, key)
############################################################
# Implementation methods for interface