From 5c9903db46daab3639dfa32719108cb2cd55766b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 18 Sep 2019 01:47:13 +0200 Subject: [PATCH] Convert other scripts to python3 QubesOS/qubes-issues#5289 --- qubes-rpc/qrun-in-vm | 2 +- qubes-rpc/xdg-icon | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qubes-rpc/qrun-in-vm b/qubes-rpc/qrun-in-vm index 266f621..4d416ee 100755 --- a/qubes-rpc/qrun-in-vm +++ b/qubes-rpc/qrun-in-vm @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 # Send the command to the remote side, and then transfer stdin from local to # remote and stdout from remote to local. # diff --git a/qubes-rpc/xdg-icon b/qubes-rpc/xdg-icon index a6a81b5..d42c702 100755 --- a/qubes-rpc/xdg-icon +++ b/qubes-rpc/xdg-icon @@ -1,4 +1,4 @@ -#!/usr/bin/python2 +#!/usr/bin/python3 import xdg.IconTheme import sys 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)]) if len(sys.argv) < 3: - print "Usage:", sys.argv[0], "ICON SIZE" + print("Usage:", sys.argv[0], "ICON SIZE") sys.exit(1) for theme in themes: @@ -18,4 +18,4 @@ for theme in themes: if icon is None: sys.exit(1) -print icon +print(icon)