#NEWLINE# def _generate_filename_to_mtime( self ) : #NEWLINE# #INDENT# filename_to_mtime = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# num_files = 0 #NEWLINE# for ( dirname , dirnames , filenames ) in os . walk ( self . _directory , followlinks = True ) : #NEWLINE# #INDENT# for filename in ( filenames + dirnames ) : #NEWLINE# #INDENT# if ( num_files == 10000 ) : #NEWLINE# #INDENT# warnings . warn ( 'There are too many files in your application for changes in all of them to be monitored. You may have to restart the development server to see some changes to your files.' ) #NEWLINE# return filename_to_mtime #NEWLINE# #UNINDENT# num_files += 1 #NEWLINE# path = os . path . join ( dirname , path ) #NEWLINE# try : #NEWLINE# #INDENT# mtime = os . path . getmtime ( path ) #NEWLINE# #UNINDENT# except ( IOError , OSError ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# filename_to_mtime [ path ] = mtime #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return filename_to_mtime