]> TLD Linux GIT Repositories - tld-builder.git/blobdiff - TLD_Builder/wrap.py
- more python3 fixes, dropped python2 support
[tld-builder.git] / TLD_Builder / wrap.py
index 0c9df39281cf6d9f724f9d308ba2b573a762e2ff..e9a24e06fb751e55d9690cb48a6be19396f88005 100644 (file)
@@ -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")