From 134510ba86fd343174750063fe7d51642f68ccd5 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 17 Jan 2024 09:24:36 -0800 Subject: [PATCH] torrent: move torrentjsonstats to python3 This is an old python2 script. I had manually hacked it when I moved torrent to rhel9, but a recent playbook run over everything put the old python2 one back. So, lets fix it for once in ansible. Signed-off-by: Kevin Fenzi --- roles/torrent/files/torrentjsonstats.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/torrent/files/torrentjsonstats.py b/roles/torrent/files/torrentjsonstats.py index f8da8b4921..6fe9338ac6 100755 --- a/roles/torrent/files/torrentjsonstats.py +++ b/roles/torrent/files/torrentjsonstats.py @@ -8,7 +8,7 @@ whitelist='/srv/torrent/btholding/whitelist' if len(sys.argv) < 2: - print "Usage: torrentstats.py /path/to/torrent/stats/file" + print("Usage: torrentstats.py /path/to/torrent/stats/file") sys.exit(1) torrents = {} @@ -34,4 +34,4 @@ for line in open(sys.argv[1],'r').readlines(): tdict['seeds'] = 1 tlist.append(tdict) -print simplejson.dumps(tlist) +print(simplejson.dumps(tlist))