More refactoring for #4077

This commit is contained in:
Miroslav Stampar
2020-01-15 22:47:06 +01:00
parent 3776f2eeea
commit 1cfe370276
3 changed files with 10 additions and 6 deletions

View File

@@ -238,7 +238,7 @@ def getBytes(value, encoding=None, errors="strict", unsafe=True):
retVal = value
if encoding is None:
encoding = conf.encoding or UNICODE_ENCODING
encoding = conf.get("encoding") or UNICODE_ENCODING
try:
codecs.lookup(encoding)