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:
4
4
Jessamyn Smith
5
5
Simon Charette
6
6
Pamela McA'Nulty
7
+ Emil Madsen
Original file line number Diff line number Diff line change 6
6
from __future__ import print_function
7
7
8
8
import os .path
9
+ import re
9
10
10
11
from six .moves import range
11
12
@@ -162,6 +163,15 @@ def file_tracer(self, filename):
162
163
def file_reporter (self , filename ):
163
164
return FileReporter (filename )
164
165
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
+
165
175
# --- FileTracer methods
166
176
167
177
def has_dynamic_source_filename (self ):
You can’t perform that action at this time.
0 commit comments