mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 23:21:22 -07:00
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:
parent
a0f27d552c
commit
6a3893c518
4 changed files with 12 additions and 13 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue