TOOLS/gen-mpv-desktop: don't overlap variable with different types
This commit is contained in:
1 parent
4cf914d44d
commit
59afdf2ef8
1 file changed
+2
-2
@@ -30,10 +30,10 @@ if __name__ == "__main__":
|
||||
if not mpv_desktop["X-KDE-Protocols"]:
|
||||
raise ValueError("Missing X-KDE-Protocols entry in mpv.desktop file")
|
||||
|
||||
with open(sys.argv[2], encoding="UTF-8") as mpv_protocols:
|
||||
with open(sys.argv[2], encoding="UTF-8") as mpv_protocols_f:
|
||||
mpv_protocols = {
|
||||
line.strip(" :/")
|
||||
for line in mpv_protocols.read().splitlines()
|
||||
for line in mpv_protocols_f.read().splitlines()
|
||||
if "://" in line
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user