8000 Quiet SyntaxWarnings in python 3.12 by rasa · Pull Request #30 · tjguk/wmi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Quiet SyntaxWarnings in python 3.12 #30

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

rasa
Copy link
@rasa rasa commented Feb 29, 2024

I get

<unknown>:2: SyntaxWarning: invalid escape sequence '\_'
<unknown>:917: SyntaxWarning: invalid escape sequence '\_'

when I import wmi. This PR quiets that.
This also works:
`python -W ignore -m pylint wmi.py
as well as

export PYTHONWARNINGS=ignore
pylint wmi.py

I get
```
<unknown>:2: SyntaxWarning: invalid escape sequence '\_'
<unknown>:917: SyntaxWarning: invalid escape sequence '\_'
```
when I `import wmi`. This PR quiets that.
This also works:
`python -W ignore -m pylint wmi.py`
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
0