[Sugar-devel] [PATCH] prevent view source display of .pyo, .pyc, .so files (#2854)
Simon Schampijer
simon at schampijer.de
Mon Aug 1 09:27:56 EDT 2011
The patch looks good in general,
On 07/18/2011 11:19 PM, Sascha Silbe wrote:
> Excerpts from Walter Bender's message of Mon Jul 04 12:37:00 +0200 2011:
>
> [src/jarabe/view/viewsource.py]
>> +_EXCLUDE = ('.pyc', '.pyo', '.so', '.o', '.a', '.la', '.mo', '~', '.xo',
>> + '.tar', '.bz2', '.zip', '.gz', '.deps', '.libs')
>
> .deps and .libs are the exact names of directories. So how about
> renaming _EXCLUDE above to _EXCLUDE_EXTENSIONS and adding _EXCLUDE_NAMES
> = ['.deps', '.libs'] ?
Where does those directories do get created?
Regards,
Simon
More information about the Sugar-devel
mailing list