From 59c9de276172b6cede0a04fe87e3079c2ecd78ee Mon Sep 17 00:00:00 2001 From: chris meyers Date: Tue, 17 Mar 2020 09:25:21 -0400 Subject: [PATCH] awxkit python2.7 compatible print * awxkit still supports python2.7 so do not use fancy f"" yet; instead, use .format() --- awxkit/awxkit/ws.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awxkit/awxkit/ws.py b/awxkit/awxkit/ws.py index 486fd5dc4a..4136b7c278 100644 --- a/awxkit/awxkit/ws.py +++ b/awxkit/awxkit/ws.py @@ -191,7 +191,7 @@ class WSClient(object): self._pending_unsubscribe.clear() self._send(json.dumps(dict(groups={}, xrftoken=self.csrftoken))) if not self._pending_unsubscribe.wait(timeout): - raise RuntimeError(f"Failed while waiting on unsubscribe reply because timeout of {timeout} seconds was reached.") + raise RuntimeError("Failed while waiting on unsubscribe reply because timeout of {} seconds was reached.".format(timeout)) else: self._send(json.dumps(dict(groups={}, xrftoken=self.csrftoken)))