[qa] covers __main__, and formating.

This commit is contained in:
Romain Dorgueil
2017-05-22 20:06:26 +02:00
parent a50b21e46d
commit 1dccad883d
7 changed files with 34 additions and 26 deletions

View File

@ -73,7 +73,7 @@ def _count_counter(self, context):
class PrettyPrinter(Configurable):
def call(self, *args, **kwargs):
for i, (item, value) in enumerate(itertools.chain(enumerate(args), kwargs.items())):
print(' ' if i else '', item, '=', str(value).strip().replace('\n', '\n'+CLEAR_EOL), CLEAR_EOL)
print(' ' if i else '', item, '=', str(value).strip().replace('\n', '\n' + CLEAR_EOL), CLEAR_EOL)
pprint = Tee(_pprint)