Skip to content

Commit

Permalink
Removed potentially unnecessary string decoding in Python API.
Browse files Browse the repository at this point in the history
  • Loading branch information
wintersteiger committed Nov 23, 2015
1 parent 6aa5ec9 commit 5e37cf9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/api/python/z3printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5e37cf9

Please sign in to comment.