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

Do we need to do something about these tox warnings? #424

Open
smithfarm opened this issue Oct 6, 2020 · 1 comment
Open

Do we need to do something about these tox warnings? #424

smithfarm opened this issue Oct 6, 2020 · 1 comment
Labels
low-hanging-fruit Simple tasks to get started

Comments

@smithfarm
Copy link
Contributor

=============================== warnings summary ===============================

ceph_salt/config_shell.py:1199

  /home/travis/build/ceph/ceph-salt/ceph_salt/config_shell.py:1199: DeprecationWarning: invalid escape sequence \+

    var = QuotedString('"') | QuotedString("'") | Word(alphanums + '?;&*$!#,=_\+/.<>()~@:-%[]')

ceph_salt/config_shell.py:1201

  /home/travis/build/ceph/ceph-salt/ceph_salt/config_shell.py:1201: DeprecationWarning: invalid escape sequence \-

    keyword = Word(alphanums + '_\-')

ceph_salt/config_shell.py:1207

ceph_salt/config_shell.py:1207

  /home/travis/build/ceph/ceph-salt/ceph_salt/config_shell.py:1207: DeprecationWarning: invalid escape sequence \[

    pathstd = Regex('([A-Za-z0-9:_.\[\]]|-)*' + '/' + '([A-Za-z0-9:_.\[\]/]|-)*') | '..' | '.'

.tox/py36/lib/python3.6/distutils/__init__.py:4

  /home/travis/build/ceph/ceph-salt/.tox/py36/lib/python3.6/distutils/__init__.py:4: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses

    import imp
@smithfarm smithfarm changed the title Do something about these tox warnings Do we need to do something about these tox warnings? Oct 6, 2020
@ricardoasmarques ricardoasmarques added the question Further information is requested label Oct 13, 2020
@tirkarthi
Copy link

Deprecation warnings are raised due to invalid escape sequences. This can be fixed by using raw strings or escaping the literals. pyupgrade also helps in automatic conversion : https://github.com/asottile/pyupgrade/ . They might be made syntax warnings in future.

@sebastian-philipp sebastian-philipp added low-hanging-fruit Simple tasks to get started and removed question Further information is requested labels Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low-hanging-fruit Simple tasks to get started
Projects
None yet
Development

No branches or pull requests

4 participants