Skip to content
This repository was archived by the owner on Dec 21, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deployer/loggers/trace.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def print_color(self):
[ '%s=%s' % (k, repr(v)) for k,v in self.trace.kwargs.items() ])
if self.trace.items:
return (f('%s(%s)\n[\n' % (self.trace.func_name, params)) +
''.join([ indent(self._print_item_color(i), prefix=' ') for i in self.trace.items ]) +
'\n'.join([ indent(self._print_item_color(i), prefix=' ') for i in self.trace.items ]) +
f(']'))
else:
return f('%s(%s)' % (self.trace.func_name, params))
Expand Down
2 changes: 1 addition & 1 deletion deployer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def indent(string, prefix=' '):
"""
Indent every line of this string.
"""
return ''.join('%s%s\n' % (prefix, s) for s in string.split('\n'))
return '\n'.join('%s%s' % (prefix, s) for s in string.split('\n'))


class capture(object):
Expand Down