Commits

Victor Stinner committed 769c917

Fix Field._getPath: replace "while field:" by "while field is not None:"

Comments (0)

Files changed (1)

hachoir-core/hachoir_core/field/field.py

             return '/'
         names = []
         field = self
-        while field:
+        while field is not None:
             names.append(field._name)
             field = field._parent
         names[-1] = ''