This commit is contained in:
Lorenzo Di Fuccia 2019-03-03 09:21:59 -08:00 • committed by GitHub
commit b96819b183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,10 +61,10 @@ class Display:
sys.excepthook = sys.__excepthook__
def log(self, message):
self.logger.info(str(message, "utf-8", "replace"))
self.logger.info(str(message)) # TODO: "utf-8", "replace"
def out(self, put):
sys.stdout.write("\r" + " " * self.columns + "\r" + str(put, "utf-8", "replace") + "\n")
sys.stdout.write("\r" + " " * self.columns + "\r" + str(put) + "\n") # TODO: "utf-8", "replace"
def info(self, message, state=False):
self.log(message)