Skip to content

Commit

Permalink
Update Products.py
Browse files Browse the repository at this point in the history
修复3.9以上版本getchildren()错误
  • Loading branch information
flashlxy authored Apr 21, 2023
1 parent 39daef9 commit ab20f94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Products.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ def __init__(self, xmlfile):

# Get the micaps files list
self.micapsfiles = []
micapsfiles = p.find("MicapsFiles").getchildren()
# micapsfiles = p.find("MicapsFiles").getchildren()
micapsfiles = list(p.find("MicapsFiles"))
for micapsfile in micapsfiles:
self.micapsfiles.append(MicapsFile(micapsfile))

Expand Down

0 comments on commit ab20f94

Please sign in to comment.