mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 14:13:23 +00:00
Removed potentially unnecessary string decoding in Python API.
This commit is contained in:
parent
6aa5ec9f77
commit
5e37cf9bbf
1 changed files with 1 additions and 7 deletions
|
@ -1157,13 +1157,7 @@ def set_pp_option(k, v):
|
||||||
def obj_to_string(a):
|
def obj_to_string(a):
|
||||||
out = io.StringIO()
|
out = io.StringIO()
|
||||||
_PP(out, _Formatter(a))
|
_PP(out, _Formatter(a))
|
||||||
r = out.getvalue()
|
return out.getvalue()
|
||||||
if sys.version < '3':
|
|
||||||
return r
|
|
||||||
else:
|
|
||||||
enc = sys.stdout.encoding
|
|
||||||
if enc != None: return r.decode(enc)
|
|
||||||
return r
|
|
||||||
|
|
||||||
_html_out = None
|
_html_out = None
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue