mirror of
https://github.com/python/cpython.git
synced 2025-11-10 14:31:24 +00:00
Use absolute import paths for intrapackage imports.
This commit is contained in:
parent
8ba76e8929
commit
21f77ac0bc
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ except ImportError:
|
||||||
import base64
|
import base64
|
||||||
|
|
||||||
# Intrapackage imports
|
# Intrapackage imports
|
||||||
from Encoders import _bencode, _qencode
|
from email.Encoders import _bencode, _qencode
|
||||||
|
|
||||||
COMMASPACE = ', '
|
COMMASPACE = ', '
|
||||||
UEMPTYSTRING = u''
|
UEMPTYSTRING = u''
|
||||||
|
|
@ -135,7 +135,7 @@ def decode(s):
|
||||||
"""
|
"""
|
||||||
warnings.warn('Use Header.decode_header() instead.', DeprecationWarning, 2)
|
warnings.warn('Use Header.decode_header() instead.', DeprecationWarning, 2)
|
||||||
# Intra-package import here to avoid circular import problems.
|
# Intra-package import here to avoid circular import problems.
|
||||||
from Header import decode_header
|
from email.Header import decode_header
|
||||||
L = decode_header(s)
|
L = decode_header(s)
|
||||||
if not isinstance(L, ListType):
|
if not isinstance(L, ListType):
|
||||||
# s wasn't decoded
|
# s wasn't decoded
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue