Skip to content

Commit 6cf0b6c

Browse files
committed
Remove Syntax Warnings
1 parent 27c62dc commit 6cf0b6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paymentrails/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def sendRequest(self,endpoint,method,body=""):
4242
'Authorization': authorization,
4343
'X-PR-Timestamp': str(timestamp)}
4444

45-
if method is "GET":
45+
if method == "GET":
4646
request = requests.get(self.config.enviroment + endpoint, headers=headers)
47-
elif method is "POST":
47+
elif method == "POST":
4848
request = requests.post(self.config.enviroment + endpoint, headers=headers, json=body)
49-
elif method is "PATCH":
49+
elif method == "PATCH":
5050
request = requests.patch(self.config.enviroment + endpoint, headers=headers, json=body)
51-
elif method is "DELETE":
51+
elif method == "DELETE":
5252
request = requests.delete(self.config.enviroment + endpoint, headers=headers)
5353
else:
5454
self.throw_status_code_exception(None, "Invalid Method")

0 commit comments

Comments
 (0)