misc: fix pylint consider-using-from-import (#55264)

This commit is contained in:
Lauréline Guérin 2021-07-01 11:42:32 +02:00
parent 71e2f3c63b
commit e7a045913a
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,6 @@ disable=
attribute-defined-outside-init,
broad-except,
consider-using-dict-comprehension,
consider-using-from-import,
consider-using-set-comprehension,
consider-using-with,
cyclic-import,

View File

@ -49,7 +49,7 @@ from .publisher import get_cfg, get_logger
from .template import Template
try:
import email.Charset as Charset
from email import Charset
Charset.add_charset('utf-8', Charset.QP, Charset.QP, 'utf-8')
except ImportError: