Skip to content

Fix all DeprecationWarning: invalid escape sequence#646

Closed
BoboTiG wants to merge 1 commit into
postmanlabs:masterfrom
BoboTiG:fix-deprecation-warnings
Closed

Fix all DeprecationWarning: invalid escape sequence#646
BoboTiG wants to merge 1 commit into
postmanlabs:masterfrom
BoboTiG:fix-deprecation-warnings

Conversation

@BoboTiG
Copy link
Copy Markdown
Contributor

@BoboTiG BoboTiG commented Jun 10, 2021

Hello,

Here is a small clean-up patch to prevent those warnings:

httpbin/helpers.py:26: DeprecationWarning: invalid escape sequence \_
  ASCII_ART = """
httpbin/helpers.py:71: DeprecationWarning: invalid escape sequence \ 
  ANGRY_ASCII ="""
httpbin/helpers.py:438: DeprecationWarning: invalid escape sequence \s
  match = re.search('\s*(W/)?\"?([^"]*)\"?\s*', part)

Fixes #602.

@BoboTiG
Copy link
Copy Markdown
Contributor Author

BoboTiG commented May 17, 2022

Gentle ping :)

@BoboTiG BoboTiG closed this May 29, 2022
@hseg
Copy link
Copy Markdown

hseg commented Apr 6, 2025

Any reason this was closed? This is still unresolved, and is annoying to ignore.

@hseg
Copy link
Copy Markdown

hseg commented Apr 6, 2025

Never mind, missed that the project has migrated to https://github.com/psf/httpbin

hseg added a commit to hseg/httpbin that referenced this pull request Apr 6, 2025
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.

Deprecation warning due to invalid escape sequences in Python 3.7

2 participants