Skip to content

Commit 23c1824

Browse files
committed
Minor fixes and refactoring
1 parent dace0ca commit 23c1824

File tree

5 files changed

+7
-18
lines changed

5 files changed

+7
-18
lines changed

azure/functions/_http.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
import types
99
import typing
1010

11-
import werkzeug.datastructures
1211
from werkzeug import formparser as _wk_parser
1312
from werkzeug import http as _wk_http
14-
from werkzeug.datastructures import Headers, FileStorage, MultiDict
13+
from werkzeug.datastructures import Headers, FileStorage, MultiDict, ImmutableMultiDict
1514

1615
from . import _abc
1716

@@ -217,23 +216,15 @@ def get_json(self) -> typing.Any:
217216
def _parse_form_data(self):
218217
if self.__form_parsed:
219218
return
220-
"""
221-
stream_factory: TStreamFactory | None = None,
222-
max_form_memory_size: int | None = None,
223-
max_content_length: int | None = None,
224-
cls: type[MultiDict[str, t.Any]] | None = None,
225-
silent: bool = True,
226-
*,
227-
max_form_parts: int | None = None,
228-
"""
219+
229220
body = self.get_body()
230221
content_type = self.headers.get('Content-Type', '')
231222
content_length = len(body)
232223
mimetype, options = _wk_http.parse_options_header(content_type)
233224
parser = _wk_parser.FormDataParser(
234225
_wk_parser.default_stream_factory, max_form_memory_size=None,
235226
max_content_length=None,
236-
cls=werkzeug.datastructures.ImmutableMultiDict
227+
cls=ImmutableMultiDict
237228
)
238229

239230
body_stream = io.BytesIO(body)

eng/templates/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ jobs:
1515
python --version
1616
displayName: 'Check python version'
1717
- bash: |
18-
python -m venv .env
19-
.env\Scripts\Activate.ps1
2018
python -m pip install -U pip
2119
python -m pip install build
2220
python -m build

eng/templates/jobs/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
python --version
1111
displayName: 'Check python version'
1212
- bash: |
13-
python -m venv .env
14-
.env\Scripts\Activate.ps1
1513
python -m pip install -U pip
1614
python -m pip install build
1715
python -m build

eng/templates/official/jobs/build-artifacts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
displayName: 'Check python version'
2424
- bash: |
2525
python -m pip install -U pip
26-
pip install twine wheel
27-
python setup.py sdist bdist_wheel
26+
python -m pip install build
27+
python -m build
2828
displayName: 'Build Python SDK'

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ classifiers = [
1414
'License :: OSI Approved :: MIT License',
1515
'Intended Audience :: Developers',
1616
'Programming Language :: Python :: 3',
17+
'Programming Language :: Python :: 3.7',
18+
'Programming Language :: Python :: 3.8',
1719
'Programming Language :: Python :: 3.9',
1820
'Programming Language :: Python :: 3.10',
1921
'Programming Language :: Python :: 3.11',

0 commit comments

Comments
 (0)