Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions httpbin/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from .structures import CaseInsensitiveDict


ASCII_ART = """
ASCII_ART = r'''
-=[ teapot ]=-

_...._
Expand All @@ -32,8 +32,8 @@
\_;`"---"`|//
| ;/
\_ _/
`\"\"\"`
"""
`"""`
'''

REDIRECT_LOCATION = '/redirect/1'

Expand Down Expand Up @@ -68,10 +68,10 @@
'image/*'
]

ANGRY_ASCII ="""
ANGRY_ASCII = r"""
.-''''''-.
.' _ _ '.
/ O O \\
/ O O \
: :
| |
: __ :
Expand Down Expand Up @@ -435,7 +435,7 @@ def parse_multi_value_header(header_str):
if header_str:
parts = header_str.split(',')
for part in parts:
match = re.search('\s*(W/)?\"?([^"]*)\"?\s*', part)
match = re.search(r'\s*(W/)?\"?([^"]*)\"?\s*', part)
if match is not None:
parsed_parts.append(match.group(2))
return parsed_parts
Expand Down