silence test warnings

This commit is contained in:
Maximilian Hils 2016-07-24 20:13:18 -07:00
parent c1bd4dabc8
commit f9edffc58e

View File

@ -33,6 +33,7 @@ def decode(encoded, encoding, errors='strict'):
"""
global _cache
cached = (
isinstance(encoded, bytes) and
_cache.encoded == encoded and
_cache.encoding == encoding and
_cache.errors == errors
@ -68,6 +69,7 @@ def encode(decoded, encoding, errors='strict'):
"""
global _cache
cached = (
isinstance(decoded, bytes) and
_cache.decoded == decoded and
_cache.encoding == encoding and
_cache.errors == errors