Remove direct calls to print and cleanup imports

All display of information should go through display instead of through print.
This commit is contained in:
Toshio Kuratomi 2016-11-07 13:36:39 -08:00 committed by Brian Coca
commit 6a3893c518
4 changed files with 12 additions and 13 deletions

View file

@ -195,8 +195,8 @@ class Base(with_metaclass(BaseMeta, object)):
def dump_me(self, depth=0):
if depth == 0:
print("DUMPING OBJECT ------------------------------------------------------")
print("%s- %s (%s, id=%s)" % (" " * depth, self.__class__.__name__, self, id(self)))
display.debug("DUMPING OBJECT ------------------------------------------------------")
display.debug("%s- %s (%s, id=%s)" % (" " * depth, self.__class__.__name__, self, id(self)))
if hasattr(self, '_parent') and self._parent:
self._parent.dump_me(depth+2)
dep_chain = self._parent.get_dep_chain()