From 58235e3675579a06d55e328d8d00045705c0cae0 Mon Sep 17 00:00:00 2001 From: Alexandre Detiste Date: Tue, 26 Mar 2024 09:15:41 +0100 Subject: [PATCH] add Python3 compatibility --- scripts/pogrep.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/pogrep.py b/scripts/pogrep.py index b837bcfd..80094c74 100644 --- a/scripts/pogrep.py +++ b/scripts/pogrep.py @@ -6,6 +6,7 @@ # - apt-get source libpam0g # - cd */po/ # - python ~/pogrep.py "Password: " +from __future__ import print_function import sys import shlex @@ -31,7 +32,7 @@ for path in glob.glob('*.po'): if last_word == 'msgid' and word == 'msgstr': if last_rest == sys.argv[1]: thing = rest.rstrip(': ').decode('utf-8').lower().encode('utf-8').encode('base64').rstrip() - print ' %-60s # %s' % (repr(thing)+',', path) + print(' %-60s # %s' % (repr(thing)+',', path)) last_word = word last_rest = rest