Skip to content

Commit

Permalink
Temp fix because uprint test failing
Browse files Browse the repository at this point in the history
  • Loading branch information
KSchopmeyer committed Jun 3, 2018
1 parent 0a72210 commit d5e52e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pywbem_mock/_wbemconnection_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ def _uprint(dest, text):
"""
if dest is None:
btext = text.encode(STDOUT_ENCODING, 'replace')
print(btext.decode(STDOUT_ENCODING))
if six.PY3:
print(btext.decode(STDOUT_ENCODING))
else:
print(btext)
else:
if six.PY2:
# Open with codecs to define text mode
Expand Down

0 comments on commit d5e52e4

Please sign in to comment.