Skip to content

Update cdl_convert/parse.py to replace depreceated read mode 'rU'#63

Open
Goldthing wants to merge 1 commit intoshidarin:mainfrom
Goldthing:master
Open

Update cdl_convert/parse.py to replace depreceated read mode 'rU'#63
Goldthing wants to merge 1 commit intoshidarin:mainfrom
Goldthing:master

Conversation

@Goldthing
Copy link
Copy Markdown

The 'rU' mode for universal newline support became the default behaviour in python 3, and is now depreciated. It can be safely replaced opening files with the standard 'r' mode.

It would break the library for python 2.7, but is this really a problem nowadays? I could implement checks for python version and logic to maintain 2.7 support if it's important for some reason.

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