3 # Try to figure out which files in the kernel tree lack maintainers.
9 maint
= open('MAINTAINERS', 'r')
10 for line
in maint
.readlines():
11 if line
.startswith('F:'):
12 pat
= line
[3:].strip()
15 for start
in glob
.iglob(pat
, recursive
= True):
16 for path
, dirs
, files
in os
.walk(start
):
18 listed
.add(os
.path
.join(path
, dir))
20 listed
.add(os
.path
.join(path
, file))
23 print('%d files' % len(listed
))
24 for path
, dirs
, files
in os
.walk('.'):
26 full
= os
.path
.join(path
[2:], file) # zorch "./"
27 if full
not in listed
: