Skip to content

Deprecation warnings due to invalid escape sequences in python 3.8 #853

@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/

I will raise a PR for this

find . -iname '*.py' | xargs -P4 -I{} python3 -Wall -m py_compile {} 
./bpython/line.py:193: DeprecationWarning: invalid escape sequence \s
  current_method_definition_name_re = LazyReCompile("def\s+([a-zA-Z_][\w]*)")
./bpython/cli.py:943: DeprecationWarning: invalid escape sequence \T
  elif key in ("KEY_NPAGE", "\T"):  # page_down or \T
./bpython/cli.py:947: DeprecationWarning: invalid escape sequence \S
  elif key in ("KEY_PPAGE", "\S"):  # page_up or \S

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy