# Own modules
-__version__ = '0.4.1'
+__version__ = '0.4.2'
LOG = logging.getLogger(__name__)
if isinstance(value, str):
v_str = value
if six.PY2:
- if isinstance(value, unicode):
+ if isinstance(value, unicode): # noqa
v_str = value.encode('utf-8')
elif six.PY3 and isinstance(value, bytes):
v_str = value.decode('utf-8')
do_encode = False
if six.PY2:
- if isinstance(obj, unicode):
+ if isinstance(obj, unicode): # noqa
do_encode = True
else:
if isinstance(obj, str):