From 6e2e13a2c7141f87b2fc4db0efde819dbe6f8877 Mon Sep 17 00:00:00 2001 From: ekultek Date: Sat, 9 Dec 2017 22:21:31 -0600 Subject: [PATCH] moved the sys calls to the main zeus.py file so they will be set at the start of the program --- zeus.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zeus.py b/zeus.py index dee5127..8a4bc67 100755 --- a/zeus.py +++ b/zeus.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import io +import sys import time import shlex import warnings @@ -43,6 +44,11 @@ warnings.simplefilter("ignore") if __name__ == "__main__": + # this will take care of most of the Unicode errors. + reload(sys) + sys.setdefaultencoding("utf-8") + sys.setrecursionlimit(1500) + opt = ZeusParser.cmd_parser() ZeusParser().single_show_args(opt)