mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Ran 2to3 on pysollib/[a-m]*.py
This commit is contained in:
parent
ae8a125087
commit
d6c0023796
1 changed files with 3 additions and 11 deletions
|
@ -40,17 +40,9 @@ import time
|
||||||
import types
|
import types
|
||||||
import locale
|
import locale
|
||||||
import webbrowser
|
import webbrowser
|
||||||
|
from six import print_
|
||||||
|
|
||||||
|
from pickle import Pickler, Unpickler, UnpicklingError
|
||||||
try:
|
|
||||||
from cPickle import Pickler, Unpickler, UnpicklingError
|
|
||||||
except ImportError:
|
|
||||||
from pickle import Pickler, Unpickler, UnpicklingError
|
|
||||||
|
|
||||||
try:
|
|
||||||
import thread
|
|
||||||
except:
|
|
||||||
thread = None
|
|
||||||
|
|
||||||
from pysollib.settings import PACKAGE, TOOLKIT
|
from pysollib.settings import PACKAGE, TOOLKIT
|
||||||
|
|
||||||
|
@ -123,7 +115,7 @@ def print_err(s, level=1):
|
||||||
ss = PACKAGE+': WARNING:'
|
ss = PACKAGE+': WARNING:'
|
||||||
elif level == 2:
|
elif level == 2:
|
||||||
ss = PACKAGE+': DEBUG WARNING:'
|
ss = PACKAGE+': DEBUG WARNING:'
|
||||||
print >> sys.stderr, ss, s.encode(locale.getpreferredencoding())
|
print_(ss, s.encode(locale.getpreferredencoding()), file=sys.stderr)
|
||||||
sys.stderr.flush()
|
sys.stderr.flush()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue