Convert other scripts to python3

QubesOS/qubes-issues#5289
This commit is contained in:
Marek Marczykowski-Górecki 2019-09-18 01:47:13 +02:00
parent a899adb69e
commit 5c9903db46
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/python2 #!/usr/bin/python3
# Send the command to the remote side, and then transfer stdin from local to # Send the command to the remote side, and then transfer stdin from local to
# remote and stdout from remote to local. # remote and stdout from remote to local.
# #

View File

@ -1,4 +1,4 @@
#!/usr/bin/python2 #!/usr/bin/python3
import xdg.IconTheme import xdg.IconTheme
import sys import sys
import os import os
@ -7,7 +7,7 @@ themes = ['Humanity', 'Adwaita', 'gnome', 'oxygen']
themes = themes + sorted([d for d in os.listdir("/usr/share/icons") if d not in themes and os.path.isdir("/usr/share/icons/" + d)]) themes = themes + sorted([d for d in os.listdir("/usr/share/icons") if d not in themes and os.path.isdir("/usr/share/icons/" + d)])
if len(sys.argv) < 3: if len(sys.argv) < 3:
print "Usage:", sys.argv[0], "ICON SIZE" print("Usage:", sys.argv[0], "ICON SIZE")
sys.exit(1) sys.exit(1)
for theme in themes: for theme in themes:
@ -18,4 +18,4 @@ for theme in themes:
if icon is None: if icon is None:
sys.exit(1) sys.exit(1)
print icon print(icon)