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:
parent
6aa5ec9f77
commit
5e37cf9bbf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue