diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-03-07 18:16:47 -0500 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-03-07 18:16:47 -0500 |
commit | d7fefe24a2289c2e077fc8d6703273d0dcb220bc (patch) | |
tree | f64cd20b6f37188146b27805dad42c7907a0a25e /Lib/fileinput.py | |
parent | f0f272e28bdfa346c33bcacd4a78df4bbf837b67 (diff) | |
parent | c2051f1fa112c1dc2b28d65e597eda85cb2e56ea (diff) | |
download | cpython-d7fefe24a2289c2e077fc8d6703273d0dcb220bc.tar.gz |
Merge: PEP8 fixup on previous patch, remove unused imports in test_email.
Diffstat (limited to 'Lib/fileinput.py')
-rw-r--r-- | Lib/fileinput.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/fileinput.py b/Lib/fileinput.py index 554beb2448..dbbbb2192e 100644 --- a/Lib/fileinput.py +++ b/Lib/fileinput.py @@ -398,9 +398,8 @@ def hook_compressed(filename, mode): def hook_encoded(encoding): - import codecs def openhook(filename, mode): - return codecs.open(filename, mode, encoding) + return open(filename, mode, encoding=encoding) return openhook |