Replace codecs.open with open
Since Python 3, using codecs.open() is unnecessary as the builtin supports an encoding argument. Use the simpler and more conventional pattern. The default mode for open() is 'r', so redundant arguments have been removed. The argument newline='' was added to FileOpener to preserve line endings when modifying a file.
Loading
Please register or sign in to comment