Commit 904686c3 authored by Hugo Posnic's avatar Hugo Posnic

Remove an unused var

parent 3f40548d
......@@ -540,11 +540,10 @@ class PacmanMirrors:
"w+t", dir=os.path.dirname(config_file),
delete=False) as tmp:
for line in cnf:
if '=' not in line:
if "=" not in line:
tmp.write("{}".format(line))
else:
(key, value) = [x.strip()
for x in line.split('=', 1)]
key = [x.strip() for x in line.split("=", 1)[0]]
if key == "OnlyCountry":
tmp.write("# OnlyCountry = \n")
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment