Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace codecs.open with open #2378

Merged
merged 1 commit into from
Oct 29, 2022

Commits on Oct 29, 2022

  1. 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.
    jdufresne committed Oct 29, 2022
    Configuration menu
    Copy the full SHA
    1093eca View commit details
    Browse the repository at this point in the history