Fix the mamagement of UnImplemented objects in the pttree tool.
Patch backorted from upstream:
https://github.com/PyTables/PyTables/commit/
5280b856189a05ceee8f034d8781d052fb5dbe5a
Closes: #941954.
Gbp-Pq: Name 0006-Fix-pttree.patch
ref_idx[path] = ref_count[addr]
hl_addresses[path] = addr
- if isinstance(node, tables.Leaf):
+ if isinstance(node, tables.UnImplemented):
+ leaves.append(node)
+
+ elif isinstance(node, tables.Leaf):
# only count the size of a hardlinked leaf the first time it is
# visited
except NotImplementedError as e:
# size_on_disk is not implemented for VLArrays
- warnings.warn(e.message)
+ warnings.warn(str(e))
# push leaf nodes onto the stack for the next pass
leaves.append(node)