Skip to content

Commit 7f16c12

Browse files
authored
Merge branch 'master' into cleanup-0.6
2 parents b2c54c5 + cc093b2 commit 7f16c12

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Upload Python Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v1
14+
with:
15+
python-version: '3.x'
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install setuptools wheel twine
20+
- name: Build and publish
21+
env:
22+
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
23+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
24+
run: |
25+
python setup.py sdist bdist_wheel
26+
twine upload dist/*

tests/http_server/helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from .structures import CaseInsensitiveDict
2424

2525

26-
ASCII_ART = """
26+
ASCII_ART = r"""
2727
-=[ teapot ]=-
2828
2929
_...._
@@ -68,7 +68,7 @@
6868
'image/*'
6969
]
7070

71-
ANGRY_ASCII ="""
71+
ANGRY_ASCII = r"""
7272
.-''''''-.
7373
.' _ _ '.
7474
/ O O \\
@@ -435,7 +435,7 @@ def parse_multi_value_header(header_str):
435435
if header_str:
436436
parts = header_str.split(',')
437437
for part in parts:
438-
match = re.search('\s*(W/)?\"?([^"]*)\"?\s*', part)
438+
match = re.search(r'\s*(W/)?\"?([^"]*)\"?\s*', part)
439439
if match is not None:
440440
parsed_parts.append(match.group(2))
441441
return parsed_parts

0 commit comments

Comments
 (0)