@@ -50,29 +50,29 @@ def message_from_string(s, *args, **kws):
5050
5151 Optional _class and strict are passed to the Parser constructor.
5252 """
53- from future .standard_library .email .parser import Parser
53+ from future .backports .email .parser import Parser
5454 return Parser (* args , ** kws ).parsestr (s )
5555
5656def message_from_bytes (s , * args , ** kws ):
5757 """Parse a bytes string into a Message object model.
5858
5959 Optional _class and strict are passed to the Parser constructor.
6060 """
61- from future .standard_library .email .parser import BytesParser
61+ from future .backports .email .parser import BytesParser
6262 return BytesParser (* args , ** kws ).parsebytes (s )
6363
6464def message_from_file (fp , * args , ** kws ):
6565 """Read a file and parse its contents into a Message object model.
6666
6767 Optional _class and strict are passed to the Parser constructor.
6868 """
69- from future .standard_library .email .parser import Parser
69+ from future .backports .email .parser import Parser
7070 return Parser (* args , ** kws ).parse (fp )
7171
7272def message_from_binary_file (fp , * args , ** kws ):
7373 """Read a binary file and parse its contents into a Message object model.
7474
7575 Optional _class and strict are passed to the Parser constructor.
7676 """
77- from future .standard_library .email .parser import BytesParser
77+ from future .backports .email .parser import BytesParser
7878 return BytesParser (* args , ** kws ).parse (fp )
0 commit comments