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

invalid escape sequences trigger SyntaxWarnings #176

Open
sspans-sbp opened this issue Mar 18, 2024 · 0 comments
Open

invalid escape sequences trigger SyntaxWarnings #176

sspans-sbp opened this issue Mar 18, 2024 · 0 comments
Assignees

Comments

@sspans-sbp
Copy link

On newer python versions (3.12.2+) some of the comments in the code trigger warnings.
These warnings will become errors in the future.

e5b1bd7a9a60:~# python
Python 3.12.2 (main, Feb  7 2024, 22:13:24) [GCC 13.2.1 20231014] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from cvpysdk.commcell import Commcell
/usr/local/lib/python3.12/site-packages/cvpysdk/commcell.py:2287: SyntaxWarning: invalid escape sequence '\M'
  """copies media from the specified location on the commcell
/usr/local/lib/python3.12/site-packages/cvpysdk/client.py:5452: SyntaxWarning: invalid escape sequence '\ '
  """
/usr/local/lib/python3.12/site-packages/cvpysdk/client.py:5532: SyntaxWarning: invalid escape sequence '\ '
  """
/usr/local/lib/python3.12/site-packages/cvpysdk/client.py:6707: SyntaxWarning: invalid escape sequence '\T'
  """
/usr/local/lib/python3.12/site-packages/cvpysdk/storage.py:2183: SyntaxWarning: invalid escape sequence '\*'
  """
/usr/local/lib/python3.12/site-packages/cvpysdk/workflow.py:622: SyntaxWarning: invalid escape sequence '\*'
  """Returns a workflow object if workflow name matches specified name
/usr/local/lib/python3.12/site-packages/cvpysdk/workflow.py:845: SyntaxWarning: invalid escape sequence '\*'
  """Initialize the WorkFlow class instance for performing workflow related operations.
/usr/local/lib/python3.12/site-packages/cvpysdk/credential_manager.py:195: SyntaxWarning: invalid escape sequence '\l'
  """Creates credential account on this commcell
/usr/local/lib/python3.12/site-packages/cvpysdk/deployment/download.py:275: SyntaxWarning: invalid escape sequence '\M'
  """copies media from the specified location on the commcell

From https://www.python.org/downloads/release/python-3122/

Invalid backslash escape sequences in strings now warn with SyntaxWarning instead of DeprecationWarning, making them more visible. (They will become syntax errors in the future.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants