Commits

Sean Summers  committed 32fba9b

small consistency change

  • Participants
  • Parent commits d8ba3bd

Comments (0)

Files changed (1)

File db4o/db4o.py

 def fields(classObject):
     ''' return all fields for a given StoredClass (including parent fields [heritage/index order]) '''
     fields = []
-    for cls in reversed(tuple(path(classObject))):
-        fields.extend(getattr(cls, 'declaredFields', getattr(cls,'storedFields', None)))
+    for c in reversed(tuple(path(classObject))):
+        fields.extend(getattr(c, 'declaredFields', getattr(c,'storedFields', None)))
     return fields
 
 def valueOf(field, instance):