[LTP] [PATCH] *.py : convert python2 to python3

Petr Vorel pvorel@suse.cz
Fri Apr 20 12:09:31 CEST 2018


Hi,

> Looks good but shouldn't we update hashbangs to python3 since these
> changes effectively make the code python3 only?
I wonder whether we should use env shebang, which is portable (#!/usr/bin/env python3) or
standard shebang using in distros (#!/usr/bin/python3). I've seen both in various
projects, some of them even use no shebang at all.

> Also there is execltp.in that is written in python, have you looked at
> that source? Is that one python3 compatible?
OK, 21 python scripts (some of the scripts doesn't have shebang).


Kind regards,
Petr


More information about the ltp mailing list