Commits

Victor Stinner  committed 769c917

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

  • Participants
  • Parent commits d02481b

Comments (0)

Files changed (1)

File 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] = ''