_ = XLATOR.gettext
ngettext = XLATOR.ngettext
-__version__ = '0.3.0'
+__version__ = '0.3.1'
# =============================================================================
)
# -------------------------------------------------------------------------
- def line(self, width=None, linechar='-', color=None):
+ def line(self, width=None, linechar='-', color=None, end='\n', file=None, flush=False):
"""Print out an line on stdout, if not in quiet mode."""
if self.quiet:
return
lin = (lchar * width)[0:width]
if color:
lin = self.colored(lin, color)
- print(lin)
+ print(lin, end=end, file=file, flush=flush)
# -------------------------------------------------------------------------
- def empty_line(self):
+ def empty_line(self, file=None, flush=False):
"""Print out an empty line on stdout, if not in quiet mode."""
if not self.quiet:
- print()
+ print('', file=file, flush=flush)
# -------------------------------------------------------------------------
def post_init(self):