AddonManager: Refactor uninstaller GUI

Offload uninstaller GUI into its own class, add tests for that class, and do
some additional minor cleanup of AddonManager.py.
This commit is contained in:
Chris Hennes
2022-12-18 20:45:09 -06:00
parent 02b4a762b0
commit 5f45b00078
15 changed files with 516 additions and 240 deletions

View File

@@ -606,9 +606,7 @@ class DeveloperMode:
for filename in filenames:
if filename.endswith(".py"):
with open(
os.path.join(dirpath, filename), encoding="utf-8"
) as f:
with open(os.path.join(dirpath, filename), encoding="utf-8") as f:
contents = f.read()
version_strings = vermin.version_strings(
vermin.detect(contents)