aboutsummaryrefslogtreecommitdiffstats
path: root/MgaRepo/binrepo.py
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2025-02-03 19:30:47 -0800
committerDan Fandrich <danf@mageia.org>2025-02-03 22:25:12 -0800
commitc488d9cdfb0aea78d4a0bde4778fe78eda1c46ea (patch)
tree034840bfc891f6873f4e2a0bcc86650291433f62 /MgaRepo/binrepo.py
parent6d2c594260832373595effa4f63552a8068ae92c (diff)
downloadmgarepo-master.tar
mgarepo-master.tar.gz
mgarepo-master.tar.bz2
mgarepo-master.tar.xz
mgarepo-master.zip
Fix many errors found by pytypeHEADmaster
Some of these would always cause run-time exceptions, which makes me believe that because these haven't been reported before there's a lot of dead code in here. There are a few more pytype errors that don't have obvious fixes.
Diffstat (limited to 'MgaRepo/binrepo.py')
-rw-r--r--MgaRepo/binrepo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/MgaRepo/binrepo.py b/MgaRepo/binrepo.py
index a66df09..7c3aca1 100644
--- a/MgaRepo/binrepo.py
+++ b/MgaRepo/binrepo.py
@@ -146,7 +146,7 @@ def parse_sources(path):
try:
f = open(path, encoding="utf-8")
except IOError:
- return []
+ return {}
for rawline in f:
line = rawline.strip()