Source

jython-db4o / db4o / db4o.py

Diff from to

File db4o/db4o.py

 def path(classObject):
     ''' generate full class history '''
     c = getattr(classObject, 'genericClass', classObject)
-    while c.declaredFields if hasattr(c, 'declaredFields') else hasattr(c, 'storedFields'):
+    while getattr(c, 'declaredFields', getattr(c, 'storedFields', None)):
         yield c
         c = getattr(c, 'superclass', getattr(c, 'parentStoredClass', None))