|
46 |
check_files.append( fn ) |
46 |
check_files.append( fn ) |
47 |
|
47 |
|
48 |
# looking for python files |
48 |
# looking for python files |
|
|
49 |
IGNORE = ( 'config.guess', 'configure', 'libtool', 'depcomp', 'install-sh', 'config.sub', 'missing', 'config.status' ) |
49 |
for dirpath, dirnames, filenames in os.walk( path ): |
50 |
for dirpath, dirnames, filenames in os.walk( path ): |
50 |
if '.svn' in dirnames: |
51 |
if '.svn' in dirnames: |
51 |
dirnames.remove('.svn') |
52 |
dirnames.remove('.svn') |
52 |
for fn in filenames: |
53 |
for fn in filenames: |
53 |
if fn.endswith('~'): |
54 |
if fn.endswith('~') or fn in IGNORE: |
54 |
continue |
55 |
continue |
55 |
try: |
56 |
try: |
56 |
content = open( os.path.join( dirpath, fn), 'r').read(100) |
57 |
content = open( os.path.join( dirpath, fn), 'r').read(100) |