diff options
-rw-r--r-- | pym/portage/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index a5a16734e..043486542 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -189,8 +189,8 @@ class _unicode_func_wrapper(object): rval = self._func(*wrapped_args, **wrapped_kwargs) - if isinstance(rval, (basestring, list, tuple)): - if isinstance(rval, basestring): + if isinstance(rval, (bytes, basestring, list, tuple)): + if isinstance(rval, (bytes, basestring)): rval = _unicode_decode(rval, encoding=encoding, errors='replace') else: |