Hello Andrey, thanks for your reply. On 15/08/2024 12:56, Andrey Rakhmatullin wrote:
On Thu, Aug 15, 2024 at 12:11:55PM +0200, Jerome BENOIT wrote:is there a reliable way to isolate Python2 idiosyncrasies in Python3 scripts ?Do you mean code that still works in Python 3 but can be simplified? Lots of linters do this in whole or in part, though I don't have suggestions for something that does *only* this. You can also look at pyupgrade.
I look to check if a bunch of Python[2] scripts can run with Python3 as-is or with minor changes. The involve scripts are very basic. Cheers, Jerome