Skip to content
Commit 7a08d9ff authored by Jon Dufresne's avatar Jon Dufresne Committed by Dimitri Papadopoulos Orfanos
Browse files

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.
parent 75e94ceb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment