mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-09 18:04:02 -07:00
Fix incorrect use of is
for comparisons.
See https://bugs.python.org/issue34850 for details.
This commit is contained in:
parent
cd7a144515
commit
0a461380a3
21 changed files with 42 additions and 42 deletions
|
@ -154,7 +154,7 @@ def signed_request(
|
|||
if session_in_query:
|
||||
query["X-Amz-Security-Token"] = session_token
|
||||
|
||||
if method is "GET":
|
||||
if method == "GET":
|
||||
body = ""
|
||||
|
||||
# Derived data
|
||||
|
@ -194,7 +194,7 @@ def signed_request(
|
|||
|
||||
url = "https://" + host + uri
|
||||
|
||||
if query_string is not "":
|
||||
if query_string != "":
|
||||
url = url + "?" + query_string
|
||||
|
||||
final_headers = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue