Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zagy committed Dec 17, 2024
1 parent dc697c6 commit ea1ab9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/batou/remote_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# bootstrapping we define it here and then re-import in the _output module.


_no_icon = object()


class Output(object):
"""Manage the output of various parts of batou to achieve
consistency wrt to formatting and display.
Expand Down Expand Up @@ -51,11 +54,13 @@ def flush_buffer(self):
self.clear_buffer()
self._flushing = False

def line(self, message, debug=False, icon=None, **format):
def line(self, message, debug=False, icon=_no_icon, **format):
if debug and not self.enable_debug:
return
if icon is None:
icon = f"{icon} "
elif icon is _no_icon:
icon = ""
else:
icon = " "
self.flush_buffer()
Expand Down

0 comments on commit ea1ab9f

Please sign in to comment.