From: Fredrik Unger Date: Mon, 2 Mar 2026 12:18:33 +0000 (+0100) Subject: xinclude: ported to python3 (print()) X-Git-Url: https://source.tree.se/git?a=commitdiff_plain;h=48f139305506646b350bc5eec2e5050267b94fed;p=treecutter.git xinclude: ported to python3 (print()) --- 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):