Mageia Bugzilla – Attachment 13471 Details for
Bug 31057
expat new security issue CVE-2022-43680
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
python script
testexpat.py (text/plain), 268 bytes, created by
Herman Viaene
on 2022-11-03 11:17:07 CET
(
hide
)
Description:
python script
Filename:
MIME Type:
Creator:
Herman Viaene
Created:
2022-11-03 11:17:07 CET
Size:
268 bytes
patch
obsolete
>import xml.etree.ElementTree >x = xml.etree.ElementTree.ElementTree(file='testdata.xml') >allcases = x.findall(".//testcase") >cases = [c for c in allcases if c.get('classname') == 'TestOne' and >c.get('name') == 'VHDL_BUILD_Passthrough'] >print(cases[0].attrib['status'])
import xml.etree.ElementTree x = xml.etree.ElementTree.ElementTree(file='testdata.xml') allcases = x.findall(".//testcase") cases = [c for c in allcases if c.get('classname') == 'TestOne' and c.get('name') == 'VHDL_BUILD_Passthrough'] print(cases[0].attrib['status'])
View Attachment As Raw
Actions:
View
Attachments on
bug 31057
: 13471 |
13472