From 48f139305506646b350bc5eec2e5050267b94fed Mon Sep 17 00:00:00 2001 From: Fredrik Unger Date: Mon, 2 Mar 2026 13:18:33 +0100 Subject: [PATCH] xinclude: ported to python3 (print()) --- xinclude/contact.py | 4 ++-- xinclude/events.py | 4 ++-- xinclude/pic.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xinclude/contact.py b/xinclude/contact.py index c6d8034..4c7acf2 100755 --- a/xinclude/contact.py +++ b/xinclude/contact.py @@ -23,9 +23,9 @@ class Contacts(object): f.closed if uri.scheme == 'http': pw = getpass() - print "http not yet implemented" + print("http not yet implemented") if uri.scheme == 'https': - print "https not yet implemented" + print("https not yet implemented") def filter(self,query): (key, name) = query.split(':') diff --git a/xinclude/events.py b/xinclude/events.py index a0fd96a..b6670c4 100755 --- a/xinclude/events.py +++ b/xinclude/events.py @@ -29,7 +29,7 @@ class Events(object): f.closed if uri.scheme == 'http': pw = getpass() - print "http not yet implemented" + print("http not yet implemented") if uri.scheme == 'https': pw = getpass() headers = {"User-Agent": "Mozilla/5.0", @@ -41,7 +41,7 @@ class Events(object): res = handle.request('GET', self.uri.path, "", headers) r = handle.getresponse() if r.status != 200: - print "Failed to connect! Wrong Password ?" + print("Failed to connect! Wrong Password ?") sys.exit(5) self.data = r.read() handle.close() diff --git a/xinclude/pic.py b/xinclude/pic.py index 3710450..f7798a9 100755 --- a/xinclude/pic.py +++ b/xinclude/pic.py @@ -32,7 +32,7 @@ class Pic(object): im.save(outfile, im.format) self.outfiles.append(outfile) except IOError: - print "cannot create thumbnail for '%s'" % infile + print("cannot create thumbnail for '%s'" % infile) self.outfiles.append(self.picture) def db_xml(self): -- 2.30.2