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

Andrey Skvortsov andrej.skvortzov at gmail.com
Thu Mar 23 12:06:32 CET 2017


On 17-03-23 11:41, Torben Hohn wrote:
> 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.
For sure. 

> We also make heavy use of ("%s" % string) constructs.
Does it cause problems in python3? I've checked and simple case is
working the same with Python2 and Python3.

-- 
Best regards,
Andrey Skvortsov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.linutronix.de/pipermail/elbe-devel/attachments/20170323/e755c56f/attachment.sig>


More information about the elbe-devel mailing list