python-http_request 0.0.5.2__tar.gz → 0.0.5.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_http_request-0.0.5.2 → python_http_request-0.0.5.3}/PKG-INFO +1 -1
- {python_http_request-0.0.5.2 → python_http_request-0.0.5.3}/http_request/__init__.py +2 -2
- {python_http_request-0.0.5.2 → python_http_request-0.0.5.3}/pyproject.toml +1 -1
- {python_http_request-0.0.5.2 → python_http_request-0.0.5.3}/LICENSE +0 -0
- {python_http_request-0.0.5.2 → python_http_request-0.0.5.3}/http_request/py.typed +0 -0
- {python_http_request-0.0.5.2 → python_http_request-0.0.5.3}/readme.md +0 -0
|
@@ -107,7 +107,7 @@ def encode_multipart_data(
|
|
|
107
107
|
yield b"\r\n"
|
|
108
108
|
|
|
109
109
|
def encode_files(files) -> Iterator[Buffer]:
|
|
110
|
-
if not
|
|
110
|
+
if not files:
|
|
111
111
|
return
|
|
112
112
|
if isinstance(files, Mapping):
|
|
113
113
|
files = ItemsView(files)
|
|
@@ -147,7 +147,7 @@ def encode_multipart_data_async(
|
|
|
147
147
|
yield b"\r\n"
|
|
148
148
|
|
|
149
149
|
async def encode_files(files) -> AsyncIterator[Buffer]:
|
|
150
|
-
if not
|
|
150
|
+
if not files:
|
|
151
151
|
return
|
|
152
152
|
if isinstance(files, Mapping):
|
|
153
153
|
files = ItemsView(files)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|