X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=TLD_Builder%2Fwrap.py;h=e9a24e06fb751e55d9690cb48a6be19396f88005;hb=9ea122b00e3a99b16246e1e38576916a2e25c0aa;hp=0c9df39281cf6d9f724f9d308ba2b573a762e2ff;hpb=b999f53d4bf5d44586ecf028876e8bc20b5fd2ce;p=tld-builder.git diff --git a/TLD_Builder/wrap.py b/TLD_Builder/wrap.py index 0c9df39..e9a24e0 100644 --- a/TLD_Builder/wrap.py +++ b/TLD_Builder/wrap.py @@ -3,7 +3,8 @@ import sys import log import traceback -import StringIO +import sys +from io import StringIO import os import time @@ -44,7 +45,7 @@ def wrap(main): exctype, value = sys.exc_info()[:2] if exctype == SystemExit: sys.exit(value) - s = StringIO.StringIO() + s = StringIO() traceback.print_exc(file = s, limit = 20) log.alert("fatal python exception")