Transition from sys.stdiout.write to print

Homebrew Jenkins testing compatability
master
Anthony Forsberg 2018-03-06 17:33:09 -05:00
parent e8a016fc35
commit af0635cfac
1 changed files with 1 additions and 2 deletions

View File

@ -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='')