Skip to content

Issue 210 check deprecated code#211

Merged
eldipa merged 4 commits intomasterfrom
Issue-210-Check-Deprecated-Code
Nov 10, 2021
Merged

Issue 210 check deprecated code#211
eldipa merged 4 commits intomasterfrom
Issue-210-Check-Deprecated-Code

Conversation

@eldipa
Copy link
Collaborator

@eldipa eldipa commented Nov 10, 2021

Closes #210

Universal newlines is the default in Python 3 so U mode is pointless and
deprecated since Python 3.3
The use of a backslash emits a warning in Python because the interpreter
thinks that it is the begin of an escape sequence which it does not
recognize.

Using raw strings (r') fixes this.
Prevent the interpreter to consider 'ascii charts' in the docstring as
escape sequences. Some (but not all) of the docstrings were changed to
be raw strings.
Make the test fail with an error if a warning is emitted.
@eldipa eldipa merged commit e4d0f05 into master Nov 10, 2021
@eldipa eldipa deleted the Issue-210-Check-Deprecated-Code branch November 10, 2021 17:01
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.

Check that no deprecated code is used.

1 participant