← Back to team overview

launchpad-dev team mailing list archive

Re: PLEASE ... DO ... NOT .... USE ... PYTHON2.6 FEATURES

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/23/2010 01:25 PM, Maris Fogels wrote:
> It is possible to use pyflakes to catch these errors before they are submitted:
> 
>   $ bzr diff -r submit: | lsdiff -i '*py' \
>   > | xargs python2.5 /usr/bin/pyflakes | grep invalid

You can also use status to list new and modified files without parsing
patches, though it's admittedly rather ugly:

bzr status -S -r submit:  | sed -e '/^.[MN].*\.py$/!D' -e 's/..//'

('/^.[MN].*\.py$/!D' is effectively "grep '^.[MN].*\.py'" or "delete any
line whose second character isn't M or N".)

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyblQ4ACgkQ0F+nu1YWqI2G6ACeNkUdJu0ehQ7maIX0ucSu6LG5
LpwAoIfLQcDLujNiVSTJAig3l/hbux6n
=eKq8
-----END PGP SIGNATURE-----



Follow ups

References