Skip to content

fix a SyntaxWarning with Python 3.8 #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
4 changes: 2 additions & 2 deletions alipay/aop/api/util/WebUtils.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def do_post(url, query_string=None, headers=None, params=None, charset='utf-8',
except Exception as e:
raise RequestException('[' + THREAD_LOCAL.uuid + ']post request failed. ' + str(e))
response = connection.getresponse()
if response.status is not 200:
if response.status != 200:
raise ResponseException('[' + THREAD_LOCAL.uuid + ']invalid http status ' + str(response.status) + \
',detail body:' + response.read())
result = response.read()
Expand Down Expand Up @@ -183,7 +183,7 @@ def do_multipart_post(url, query_string=None, headers=None, params=None, multipa
except Exception as e:
raise RequestException('[' + THREAD_LOCAL.uuid + ']post request failed. ' + str(e))
response = connection.getresponse()
if response.status is not 200:
if response.status != 200:
raise ResponseException('[' + THREAD_LOCAL.uuid + ']invalid http status ' + str(response.status) + \
',detail body:' + response.read())
result = response.read()
Expand Down