aboutsummaryrefslogtreecommitdiffstats
path: root/examples/networkauth/redditclient/redditwrapper.py
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-11-28 12:10:26 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-11-28 15:58:37 +0100
commitddc01a90175e90a7854be0d90bed25a902613e59 (patch)
tree26eecdea75c0f304a46880eec30720822439a34d /examples/networkauth/redditclient/redditwrapper.py
parentca3a64c024ae817ca38b1df87123f341637c8bd4 (diff)
Examples: Fix some flake warnings
Mostly spacing related. Pick-to: 6.6 Change-Id: If0d5b25e1c60b7b216f970d1e57613f00bd04a37 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
Diffstat (limited to 'examples/networkauth/redditclient/redditwrapper.py')
-rw-r--r--examples/networkauth/redditclient/redditwrapper.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/networkauth/redditclient/redditwrapper.py b/examples/networkauth/redditclient/redditwrapper.py
index f889a9366..ed4c3d2c7 100644
--- a/examples/networkauth/redditclient/redditwrapper.py
+++ b/examples/networkauth/redditclient/redditwrapper.py
@@ -19,6 +19,7 @@ NEW_URL = "https://oauth.reddit.com/new"
HOT_URL = "https://oauth.reddit.com/hot"
LIVE_THREADS_URL = "https://oauth.reddit.com/live/XXXX/about.json"
+
class RedditWrapper(QObject):
authenticated = Signal()
@@ -78,7 +79,7 @@ class RedditWrapper(QObject):
json = reply.readAll()
document = QJsonDocument.fromJson(json)
- assert(document.isObject())
+ assert document.isObject()
root_object = document.object()
data_object = root_object["data"]
websocketUrl = QUrl(data_object["websocket_url"])