Revision 710adfb2 image_creator/output.py

b/image_creator/output.py
37 37

  
38 38

  
39 39
def error(msg, new_line=True, color=True):
40
    nl = "\n" if new_line else ''
40
    nl = "\n" if new_line else ' '
41 41
    if color:
42 42
        sys.stderr.write(red('Error: %s' % msg) + nl)
43 43
    else:
......
45 45

  
46 46

  
47 47
def warn(msg, new_line=True, color=True):
48
    nl = "\n" if new_line else ''
48
    nl = "\n" if new_line else ' '
49 49
    if color:
50 50
        sys.stderr.write(yellow("Warning: %s" % msg) + nl)
51 51
    else:
......
53 53

  
54 54

  
55 55
def success(msg, new_line=True, color=True):
56
    nl = "\n" if new_line else ''
56
    nl = "\n" if new_line else ' '
57 57
    if color:
58 58
        sys.stdout.write(green(msg) + nl)
59 59
    else:
......
63 63

  
64 64

  
65 65
def output(msg='', new_line=True):
66
    nl = "\n" if new_line else ''
66
    nl = "\n" if new_line else ' '
67 67
    sys.stdout.write(msg + nl)
68 68
    if not nl:
69 69
        sys.stdout.flush()
......
155 155
            self.goto(1)
156 156

  
157 157
        def success(self, result):
158
            self.output.output("\r%s... \033[K" % self.title, False)
158
            self.output.output("\r%s...\033[K" % self.title, False)
159 159
            self.output.success(result)
160 160

  
161 161

  

Also available in: Unified diff