History

TOOLS/gen-mpv-desktop: don't overlap variable with different types

Kacper Michajłow committed 1 year ago

Commit 59afdf21 parent 4cf914d1 file · +2 −2Browse files

Unified · Split

TOOLS/gen-mpv-desktop.py+2−2
@@ -30,10 +30,10 @@ if __name__ == "__main__": · 29 unmodified lines
3030 if not mpv_desktop["X-KDE-Protocols"]:
3131 raise ValueError("Missing X-KDE-Protocols entry in mpv.desktop file")
3232
33− with open(sys.argv[2], encoding="UTF-8") as mpv_protocols:
33+ with open(sys.argv[2], encoding="UTF-8") as mpv_protocols_f:
3434 mpv_protocols = {
3535 line.strip(" :/")
36− for line in mpv_protocols.read().splitlines()
36+ for line in mpv_protocols_f.read().splitlines()
3737 if "://" in line
3838 }
3939

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t