commit | a011e2b2fac5cc63c8214315190a54cc71cbd089 | [log] [tgz] |
---|---|---|
author | Florent Xicluna <florent.xicluna@gmail.com> | Mon Nov 07 19:43:07 2011 +0100 |
committer | Florent Xicluna <florent.xicluna@gmail.com> | Mon Nov 07 19:43:07 2011 +0100 |
tree | 3cebb9bd5338447b4b65d2c0d9a01df808cae20a | |
parent | 5252f9faee97573f5b8ff37d7c22225e5df6cc0b [diff] [blame] |
fileinput: replace this last occurence of codecs.open with builtins.open.
diff --git a/Lib/fileinput.py b/Lib/fileinput.py index 554beb2..dbbbb21 100644 --- a/Lib/fileinput.py +++ b/Lib/fileinput.py
@@ -398,9 +398,8 @@ def hook_encoded(encoding): - import codecs def openhook(filename, mode): - return codecs.open(filename, mode, encoding) + return open(filename, mode, encoding=encoding) return openhook