[elbe-devel] [PATCH] python3: Get rid of SyntaxError

bage at linutronix.de bage at linutronix.de
Wed Aug 28 09:35:11 CEST 2019


From: Bastian Germann <bage at linutronix.de>

Signed-off-by: Bastian Germann <bage at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/changelogxml.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/elbepack/changelogxml.py b/elbepack/changelogxml.py
index a0681f92..d747f25f 100644
--- a/elbepack/changelogxml.py
+++ b/elbepack/changelogxml.py
@@ -3,6 +3,7 @@
 #
 # SPDX-License-Identifier: GPL-3.0-or-later
 
+from __future__ import print_function
 
 import re
 from elbepack.treeutils import etree
@@ -27,7 +28,7 @@ class changelogs_xml(object):
         try:
             xmlpkg.et.text = changelog_text.decode('utf-8')
         except ValueError:
-            print changelog_text
+            print(changelog_text)
 
     def write(self, fname):
         self.outxml.write(fname, encoding="utf-8")
-- 
2.20.1




More information about the elbe-devel mailing list