[ZODB-Dev] Typo in ZODB.ZApplication of ZODB 3.4!

Tim Peters tim at zope.com
Fri May 6 14:01:59 EDT 2005


[Stefan H. Holek]
> I am pretty sure this should say "isinstance(connection, basestring)",
> not "type".
>
>      def __call__(self, connection=None):
>          db, aname, version_support = self._stuff
>
>          if connection is None:
>              connection=db.open()
>          elif isinstance(type, basestring):
>              connection=db.open(connection)
>
>          return connection.root()[aname]

Ya, I don't know why this is even part of ZODB, but that code is clearly
senseless.  OTOH, I see that change was made more than a year ago, and
you're the first to notice <wink>.



More information about the ZODB-Dev mailing list