Skip to content

Use open() instead of codecs.open(), deprecated in Python 3.14 - #485

Open
jpmckinney wants to merge 1 commit into
OpenDataServices:mainfrom
jpmckinney:remove-codecs
Open

jpmckinney wants to merge 1 commit into
OpenDataServices:mainfrom
jpmckinney:remove-codecs

Conversation

@jpmckinney

@jpmckinney jpmckinney commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

codecs.open() emits a DeprecationWarning on Python 3.14, which fails test suites that run with -W error (like Kingfisher Collect's).

The writes use newline="", to keep the previous behavior of codecs.open(), which doesn't translate newlines (e.g. to \r\n on Windows).

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant