From b81fe339a354d8089ed212361843e96e070d04c5 Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Tue, 12 Nov 2024 12:15:55 +0100 Subject: [PATCH] Python3 fix: str instead of basestring --- cco/webapi/client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cco/webapi/client.py b/cco/webapi/client.py index e7e6920..997c8a2 100644 --- a/cco/webapi/client.py +++ b/cco/webapi/client.py @@ -1,6 +1,4 @@ -# # cco.webapi.client -# """ Functions for providieng external services with object data @@ -21,7 +19,7 @@ def sendJson(url, payload, cred, method): if url.startswith('test:'): resp = testing.request(method, url, json=payload, auth=cred) else: - if isinstance(payload, basestring): + if isinstance(payload, str): resp = requests.request( method, url, data=payload, auth=cred, timeout=10) else: