File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ contributions by:
44Jessamyn Smith
55Simon Charette
66Pamela McA'Nulty
7+ Emil Madsen
Original file line number Diff line number Diff line change 66from __future__ import print_function
77
88import os .path
9+ import re
910
1011from six .moves import range
1112
@@ -162,6 +163,15 @@ def file_tracer(self, filename):
162163 def file_reporter (self , filename ):
163164 return FileReporter (filename )
164165
166+ def find_executable_files (self , src_dir ):
167+ for (dirpath , dirnames , filenames ) in os .walk (src_dir ):
168+ for filename in filenames :
169+ # We're only interested in files that look like reasonable HTML
170+ # files: Must end with .htm or .html, and must not have certain
171+ # funny characters that probably mean they are editor junk.
172+ if re .match (r"^[^.#~!$@%^&*()+=,]+\.html?$" , filename ):
173+ yield os .path .join (dirpath , filename )
174+
165175 # --- FileTracer methods
166176
167177 def has_dynamic_source_filename (self ):
You can’t perform that action at this time.
0 commit comments