diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-25 23:15:47 +0000 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-25 23:15:47 +0000 |
| commit | 0c4cc559cbef20a917367415af011c29ce6d334e (patch) | |
| tree | 540510372708854e301bd5b5ecc63a512308078a /Lib/email/__init__.py | |
| parent | 512d2cc64328d06f4ff627497ab444e83e513348 (diff) | |
| download | cpython-git-0c4cc559cbef20a917367415af011c29ce6d334e.tar.gz | |
fix import in email.message_from_binary_file()
Parser => BytesParser
Diffstat (limited to 'Lib/email/__init__.py')
| -rw-r--r-- | Lib/email/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/email/__init__.py b/Lib/email/__init__.py index c54a2c77f5..bd316fdaf3 100644 --- a/Lib/email/__init__.py +++ b/Lib/email/__init__.py @@ -59,5 +59,5 @@ def message_from_binary_file(fp, *args, **kws): Optional _class and strict are passed to the Parser constructor. """ - from email.parser import Parser + from email.parser import BytesParser return BytesParser(*args, **kws).parse(fp) |
