Skip to content

Commit 5178494

Browse files
committed
Fix 'DeprecationWarning' in scriptgen.py
1 parent 2c48f3a commit 5178494

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/scriptgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ def parse_dir(root, d, files):
12061206
continue
12071207

12081208
rootXml = ElementTree.parse(root + "/" + f).getroot()
1209-
if not rootXml:
1209+
if rootXml is None:
12101210
print("Ignoring [" + f + "]: Cannot parse xml", file=sys.stderr)
12111211
continue
12121212

0 commit comments

Comments
 (0)