Skip to content

Deprecation warning due to invalid escape sequences #286

Closed
@tirkarthi

Description

@tirkarthi

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/

find . -iname '*.py' | grep -v example | xargs -P4 -I{} python3.8 -Wall -m py_compile {}
./libtmux/pane.py:156: DeprecationWarning: invalid escape sequence \;
  self.cmd('send-keys', '-R \; clear-history')
./libtmux/common.py:236: DeprecationWarning: invalid escape sequence \_
  """Base: :py:class:`collections.MutableMapping`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions