3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00

Removed potentially unnecessary string decoding in Python API.

This commit is contained in:
Christoph M. Wintersteiger 2015-11-23 18:41:31 +00:00
parent 6aa5ec9f77
commit 5e37cf9bbf

View file

@ -1157,13 +1157,7 @@ def set_pp_option(k, v):
def obj_to_string(a):
out = io.StringIO()
_PP(out, _Formatter(a))
r = out.getvalue()
if sys.version < '3':
return r
else:
enc = sys.stdout.encoding
if enc != None: return r.decode(enc)
return r
return out.getvalue()
_html_out = None