fileinput: replace this last occurence of codecs.open with builtins.open.

This commit is contained in:
Florent Xicluna 2011-11-07 19:43:07 +01:00
parent 5252f9faee
commit a011e2b2fa
2 changed files with 10 additions and 21 deletions

View file

@ -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