From 8ffe8d281fcbfc0c9542408d4cb1a88582179a17 Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Tue, 27 Dec 2022 12:31:55 +0100 Subject: [PATCH] Fix style issues --- toot/commands.py | 2 +- toot/tui/timeline.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/toot/commands.py b/toot/commands.py index 5cbde45..e334b30 100644 --- a/toot/commands.py +++ b/toot/commands.py @@ -43,7 +43,7 @@ def get_timeline_generator(app, user, args): def timeline(app, user, args): generator = get_timeline_generator(app, user, args) - while(True): + while True: try: items = next(generator) except StopIteration: diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 26b67ab..120feba 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -236,8 +236,8 @@ class Timeline(urwid.Columns): index = self.get_status_index(status.id) assert self.statuses[index].id == status.id # Sanity check - del(self.statuses[index]) - del(self.status_list.body[index]) + del self.statuses[index] + del self.status_list.body[index] self.refresh_status_details()