Also fix for encoding

This commit is contained in:
Schamper 2016-09-06 10:37:24 +02:00
parent 8702c9357d
commit c16417248c

View File

@ -76,7 +76,7 @@ def encode(decoded, encoding, errors='strict'):
Raises:
ValueError, if encoding fails.
"""
if len(decoded) == 0:
if len(decoded) == 0 or encoding == "none":
return decoded
global _cache