def error(msg, new_line=True, color=True):
- nl = "\n" if new_line else ''
+ nl = "\n" if new_line else ' '
if color:
sys.stderr.write(red('Error: %s' % msg) + nl)
else:
def warn(msg, new_line=True, color=True):
- nl = "\n" if new_line else ''
+ nl = "\n" if new_line else ' '
if color:
sys.stderr.write(yellow("Warning: %s" % msg) + nl)
else:
def success(msg, new_line=True, color=True):
- nl = "\n" if new_line else ''
+ nl = "\n" if new_line else ' '
if color:
sys.stdout.write(green(msg) + nl)
else:
def output(msg='', new_line=True):
- nl = "\n" if new_line else ''
+ nl = "\n" if new_line else ' '
sys.stdout.write(msg + nl)
if not nl:
sys.stdout.flush()
self.goto(1)
def success(self, result):
- self.output.output("\r%s... \033[K" % self.title, False)
+ self.output.output("\r%s...\033[K" % self.title, False)
self.output.success(result)