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

Torben Hohn torben.hohn at linutronix.de
Wed Aug 28 09:09:43 CEST 2019


On Tue, Aug 27, 2019 at 10:13:29PM +0200, bage at linutronix.de wrote:
> From: Bastian Germann <bage at linutronix.de>
> 
> Signed-off-by: Bastian Germann <bage at linutronix.de>

this requires from __future__ import print_function

for python2 ...

add that, and then 

Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>

> ---
>  elbepack/changelogxml.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/elbepack/changelogxml.py b/elbepack/changelogxml.py
> index a0681f92..5b42c343 100644
> --- a/elbepack/changelogxml.py
> +++ b/elbepack/changelogxml.py
> @@ -27,7 +27,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
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list