Hi, We should patch modernize in Debian to make --no-six the default. (otherwise it is a big pitfall)
"It does not guarantee, but it attempts to spit out a codebase compatible with Python 2.6+ or Python 3. The code that it generates has a runtime dependency on six, unless the --no-six option is used. Version 1.9.0 or later of six is recommended. Some of the fixers output code that is not compatible with Python 2.5 or lower." Le jeu. 15 août 2024, 13:39, Andrey Rakhmatullin <w...@debian.org> a écrit : > On Thu, Aug 15, 2024 at 01:11:23PM +0200, Jerome BENOIT wrote: > > > > is there a reliable way to isolate Python2 idiosyncrasies in Python3 > scripts ? > Try modernize or any linter. > > -- > WBR, wRAR >