diff options
author | pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> | 2022-06-13 16:57:50 +0000 |
---|---|---|
committer | Asif Saif Uddin <auvipy@gmail.com> | 2022-06-19 13:03:25 +0600 |
commit | e57ed2907ba3d0545753cf57164e20c57920683b (patch) | |
tree | 61aeaeeb645ae0dae880230b2ecd868a1bb97602 | |
parent | 984c5ff32487bb1b80d55a757f8ecef42954cfc8 (diff) | |
download | kombu-e57ed2907ba3d0545753cf57164e20c57920683b.tar.gz |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
-rw-r--r-- | kombu/asynchronous/http/curl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kombu/asynchronous/http/curl.py b/kombu/asynchronous/http/curl.py index 11f20c91..6f879fa9 100644 --- a/kombu/asynchronous/http/curl.py +++ b/kombu/asynchronous/http/curl.py @@ -252,7 +252,7 @@ class CurlClient(BaseClient): setopt(meth, True) if request.method in ('POST', 'PUT'): - body = request.body.encode('utf-8') if request.body else bytes() + body = request.body.encode('utf-8') if request.body else b'' reqbuffer = BytesIO(body) setopt(_pycurl.READFUNCTION, reqbuffer.read) if request.method == 'POST': |