We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb49572 commit 5a35435Copy full SHA for 5a35435
1 file changed
utils/make-sqlite.py
@@ -30,15 +30,11 @@
30
31
parser = etree.XMLParser(remove_blank_text=True)
32
33
-def nomes_all():
34
- """Returns generator to extract all files from a list of files/dirs"""
35
- return glob.glob('src/chrome/content/rules/*.xml')
36
-
37
# Precompile xpath expressions that get run repeatedly.
38
xpath_host = etree.XPath("/ruleset/target/@host")
39
xpath_ruleset = etree.XPath("/ruleset")
40
41
-for fi in nomes_all():
+for fi in glob.iglob('src/chrome/content/rules/*.xml'):
42
try:
43
tree = etree.parse(fi, parser)
44
except Exception as oops:
0 commit comments