diff --git a/prefs.py b/prefs.py index ef43c5de..307e3c7a 100644 --- a/prefs.py +++ b/prefs.py @@ -364,7 +364,7 @@ class PreferencesDialog(tk.Toplevel): self.outdir_entry = ttk.Entry(output_frame, takefocus=False) self.outdir_entry.grid(columnspan=2, padx=self.PADX, pady=self.BOXY, sticky=tk.EW, row=row.get()) - text = (_('Browse...')) # LANG: NOT-macOS Settings - files location selection button + text = _('Browse...') # LANG: NOT-macOS Settings - files location selection button self.outbutton = ttk.Button( output_frame, @@ -410,7 +410,7 @@ class PreferencesDialog(tk.Toplevel): self.logdir_entry.grid(columnspan=4, padx=self.PADX, pady=self.BOXY, sticky=tk.EW, row=row.get()) - text = (_('Browse...')) # LANG: NOT-macOS Setting - files location selection button + text = _('Browse...') # LANG: NOT-macOS Setting - files location selection button with row as cur_row: self.logbutton = ttk.Button( diff --git a/td.py b/td.py index d2b5dbdd..484e8d29 100644 --- a/td.py +++ b/td.py @@ -1,7 +1,6 @@ """Export data for Trade Dangerous.""" import pathlib -import sys import time from collections import defaultdict from operator import itemgetter diff --git a/ttkHyperlinkLabel.py b/ttkHyperlinkLabel.py index de906510..9bb3b9bf 100644 --- a/ttkHyperlinkLabel.py +++ b/ttkHyperlinkLabel.py @@ -31,7 +31,6 @@ if TYPE_CHECKING: def _(x: str) -> str: return x -# FIXME: Split this into multi-file module to separate the platforms class HyperlinkLabel(tk.Label or ttk.Label): # type: ignore """Clickable label for HTTP links.""" diff --git a/update.py b/update.py index e0b8f97b..346aff63 100644 --- a/update.py +++ b/update.py @@ -7,10 +7,8 @@ See LICENSE file. """ from __future__ import annotations -import os import sys import threading -from os.path import dirname, join from traceback import print_exc from typing import TYPE_CHECKING from xml.etree import ElementTree @@ -163,10 +161,9 @@ class Updater: return None - else: - # For *these* purposes anything else is the same as 'windows', as - # non-win32 would be running from source. - sparkle_platform = 'windows' + # For *these* purposes anything else is the same as 'windows', as + # non-win32 would be running from source. + sparkle_platform = 'windows' for item in feed.findall('channel/item'): # xml is a pain with types, hence these ignores