Fix incorrect use of is for comparisons.

See https://bugs.python.org/issue34850 for details.
This commit is contained in:
Matt Clay 2019-02-12 15:15:23 -08:00
commit 0a461380a3
21 changed files with 42 additions and 42 deletions

View file

@ -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 = {