We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c5b34 commit d756319Copy full SHA for d756319
dev/release/check_rat_report.py
@@ -30,7 +30,13 @@
30
exclude_globs_filename = sys.argv[1]
31
xml_filename = sys.argv[2]
32
33
-globs = [line.strip() for line in open(exclude_globs_filename, "r")]
+globs = []
34
+with open(exclude_globs_filename, "r") as f:
35
+ for line in f:
36
+ stripped_line = line.strip()
37
+ if not stripped_line or stripped_line.startswith('#'):
38
+ continue
39
+ globs.append(stripped_line)
40
41
tree = ET.parse(xml_filename)
42
root = tree.getroot()
0 commit comments