1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

use normal print to avoid b"...".

This commit is contained in:
Shlomi Fish 2019-04-29 14:25:04 +03:00
parent cb25f39136
commit da256a30b0

View file

@ -107,9 +107,9 @@ def print_err(s, level=1):
elif level == 2:
ss = PACKAGE+': DEBUG WARNING:'
try:
print_(ss, s.encode(locale.getpreferredencoding()), file=sys.stderr)
except Exception:
print_(ss, s, file=sys.stderr)
except Exception:
print_(ss, s.encode(locale.getpreferredencoding()), file=sys.stderr)
sys.stderr.flush()