kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #15290
Re: [PATCH] scripts/test_kicad_plugin.py cleanup (relative to BZR5201)
Le 18/10/2014 13:46, LordBlick a écrit :
> I'm very glad and grateful to see that UTF8 class was tuned up in python.
> BZR5201 takes my attention to scripts/test_kicad_plugin.py example, so I make it
> more friendly to user edit temporary path in one place only.
> In addition, there is an example how the Python may be flexible at the stage of
> import py module.
>
> Also some cleanup and was taken:
> - „pass” is more lexically correct in except routine than „None” - really does
> nothing „under a skin”.
> - remove unused imports „sys” and „print_function”. „print” from newest Python
> 2 line works identically as needed.
> - Unify assignments with space to much readability.
> - It's bad practice to import everything from module („*”) - some names from
> different modules may have same names, so I limit it to used classes only.
Committed. Thanks.
--
Jean-Pierre CHARRAS
References