diff options
| author | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-07 19:43:07 +0100 |
|---|---|---|
| committer | Florent Xicluna <florent.xicluna@gmail.com> | 2011-11-07 19:43:07 +0100 |
| commit | a011e2b2fac5cc63c8214315190a54cc71cbd089 (patch) | |
| tree | 3cebb9bd5338447b4b65d2c0d9a01df808cae20a /Lib/fileinput.py | |
| parent | 5252f9faee97573f5b8ff37d7c22225e5df6cc0b (diff) | |
| download | cpython-git-a011e2b2fac5cc63c8214315190a54cc71cbd089.tar.gz | |
fileinput: replace this last occurence of codecs.open with builtins.open.
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 |
