diff --git a/pywbem_mock/_wbemconnection_mock.py b/pywbem_mock/_wbemconnection_mock.py index 74c708878..c85cbe0ae 100644 --- a/pywbem_mock/_wbemconnection_mock.py +++ b/pywbem_mock/_wbemconnection_mock.py @@ -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