Catching python syntax errors at build time

Tim Waugh twaugh at redhat.com
Fri Feb 20 17:36:30 UTC 2009


It occurred to me that, since we are already byte-compiling Python code 
at build time, it is no extra effort to verify that it can be parsed and 
fail if not.

See attached patch.

Can anyone think of any reason not to do this?

Tim.
*/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: python-bytecompile.patch
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090220/2104b3da/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20090220/2104b3da/attachment.sig>


More information about the fedora-devel-list mailing list