Transition from sys.stdiout.write to print
Homebrew Jenkins testing compatabilitymaster
parent
e8a016fc35
commit
af0635cfac
|
@ -1,8 +1,7 @@
|
|||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def print_clean(msg):
|
||||
terminal_size = os.get_terminal_size()
|
||||
msg_length = len(msg)
|
||||
sys.stdout.write("{}{}".format(msg, " " * (int(terminal_size[0]) - msg_length)))
|
||||
print("{}{}".format(msg, " " * (int(terminal_size[0]) - msg_length)), end='')
|
||||
|
|
Loading…
Reference in New Issue