[elbe-devel] [PATCH] elbe: shebang: force python2

Torben Hohn torben.hohn at linutronix.de
Thu Mar 23 11:41:34 CET 2017


On Thu, Mar 23, 2017 at 11:00:43AM +0300, Andrey Skvortsov wrote:
> On 17-03-22 10:44, Kurt Kanzenbach wrote:
> > Seems like Elbe is written in Python2. However, some distributions ship Python3
> > as default version. This results in errors like this:
> > 
> >   File "./elbe", line 29
> >     print 'elbe v' + elbe_version
> >                  ^
> >   SyntaxError: Missing parentheses in call to 'print'
> > 
> > So better force the used version to Python2.
> 
> Wouldn't better to fix this error to use compatible with python3
> implementation? 

Yes it would, but there are a lot more instances of python2 code.
We are already using from __future__ import print_function in several
modules. 

Its not only the print () which needs to change.
We also make heavy use of ("%s" % string) constructs.


-- 
Mit freundlichen Grüßen
Torben Hohn

Linutronix GmbH

Standort: Bremen

Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Firmensitz / Registered Office: D-88690 Uhldingen, Bahnhofstr. 3
Registergericht / Local District Court: Amtsgericht Freiburg i. Br.; HRB
Nr. / Trade register no.: 700 806

Geschäftsführer / Managing Directors: Heinz Egger, Thomas Gleixner

Eine Bitte von uns: Sollten Sie diese E-Mail irrtümlich erhalten haben,
benachrichtigen Sie uns in diesem Falle bitte sobald wie es Ihnen
möglich ist, durch Antwort-Mail. Vielen Dank!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20170323/468d64d4/attachment.sig>


More information about the elbe-devel mailing list