By default, exclude files that are likely to be binary files.
authorTodd Larsen <tlarsen@google.com>
Sat, 22 Nov 2008 01:55:19 +0000
changeset 541 d572b0fb6bfe
parent 540 e14e9cf23097
child 542 7cc99461b64d
By default, exclude files that are likely to be binary files. Patch by: Todd Larsen
scripts/munge.py
--- a/scripts/munge.py	Sat Nov 22 00:23:10 2008 +0000
+++ b/scripts/munge.py	Sat Nov 22 01:55:19 2008 +0000
@@ -378,7 +378,8 @@
     'Options used to select which files to process.')
 
   filter_group.add_option(
-    '-f', '--files', dest='files_pattern', default='^.*$',
+    '-f', '--files', dest='files_pattern',
+    default='(?!^.*\.pyc|.*\.ico|.*\.gif|.*\.png|.*\.jpg$)',
     metavar='FILES_REGEX',
     help=('Python regex pattern (*not* a glob!) defining files to process'
           ' in each directory [default: %default]'))