summaryrefslogtreecommitdiffstats
path: root/Lib/fileinput.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-11-07 18:43:07 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-11-07 18:43:07 (GMT)
commita011e2b2fac5cc63c8214315190a54cc71cbd089 (patch)
tree3cebb9bd5338447b4b65d2c0d9a01df808cae20a /Lib/fileinput.py
parent5252f9faee97573f5b8ff37d7c22225e5df6cc0b (diff)
downloadcpython-a011e2b2fac5cc63c8214315190a54cc71cbd089.zip
cpython-a011e2b2fac5cc63c8214315190a54cc71cbd089.tar.gz
cpython-a011e2b2fac5cc63c8214315190a54cc71cbd089.tar.bz2
fileinput: replace this last occurence of codecs.open with builtins.open.
Diffstat (limited to 'Lib/fileinput.py')
-rw-r--r--Lib/fileinput.py3
1 files changed, 1 insertions, 2 deletions
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_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