#!/usr/bin/env python'''Scans current directory for *.py files and reportsones with missing __doc__ string.'''# Python 2/3 compatibilityfrom__future__importprint_functionimportsysPY3=sys.version_info[0]==3fromglobimportglobif__name__=='__main__':print('--- undocumented files:')forfninglob('*.py'):loc={}try:ifPY3:exec(open(fn).read(),loc)else:execfile(fn,loc)except:passif'__doc__'notinloc:print(fn)