1 #!/usr/bin/env python 2 3 ''' 4 Scans current directory for *.py files and reports 5 ones with missing __doc__ string. 6 ''' 7 8 from glob import glob 9 10 if __name__ == '__main__': 11 print '--- undocumented files:' 12 for fn in glob('*.py'): 13 loc = {} 14 execfile(fn, loc) 15 if '__doc__' not in loc: 16 print fn 17