Public bug reported: Ubuntu 24.04.1 LTS, wsdd package 2:0.7.1-5
sudo systemctl status wsdd prints the following warning: Oct 24 16:18:15 lxjima wsdd[85648]: /usr/bin/wsdd:467: DeprecationWarning: Testing an element's truth value will raise an exception in future versions> Oct 24 16:18:15 lxjima wsdd[85648]: if request_header: Basicially it is saying this script will break after a future Phython update. -------------- Here is the code, starting at line 467: if request_header: req_msg_id = request_header.find('./wsa:MessageID', namespaces) if req_msg_id is not None: relates_to = ElementTree.SubElement(header, 'wsa:RelatesTo') relates_to.text = req_msg_id.text ** Affects: wsdd (Ubuntu) Importance: Undecided Status: New ** Description changed: Ubuntu 24.04. wsdd package 2:0.7.1-5 sudo systemctl status wsdd prints the following warning: Oct 24 16:18:15 lxjima wsdd[85648]: /usr/bin/wsdd:467: DeprecationWarning: Testing an element's truth value will raise an exception in future versions> Oct 24 16:18:15 lxjima wsdd[85648]: if request_header: + Basicially it is saying this script will break after a future Phython + update. - Basicially it is saying this script will break after a future Phython update. + -------------- + Here is the code, starting at line 467: + + if request_header: + req_msg_id = request_header.find('./wsa:MessageID', namespaces) + if req_msg_id is not None: + relates_to = ElementTree.SubElement(header, 'wsa:RelatesTo') + relates_to.text = req_msg_id.text ** Description changed: - Ubuntu 24.04. wsdd package 2:0.7.1-5 + Ubuntu 24.04.q LTS, wsdd package 2:0.7.1-5 sudo systemctl status wsdd prints the following warning: Oct 24 16:18:15 lxjima wsdd[85648]: /usr/bin/wsdd:467: DeprecationWarning: Testing an element's truth value will raise an exception in future versions> Oct 24 16:18:15 lxjima wsdd[85648]: if request_header: Basicially it is saying this script will break after a future Phython update. -------------- Here is the code, starting at line 467: - if request_header: - req_msg_id = request_header.find('./wsa:MessageID', namespaces) - if req_msg_id is not None: - relates_to = ElementTree.SubElement(header, 'wsa:RelatesTo') - relates_to.text = req_msg_id.text + if request_header: + req_msg_id = request_header.find('./wsa:MessageID', namespaces) + if req_msg_id is not None: + relates_to = ElementTree.SubElement(header, 'wsa:RelatesTo') + relates_to.text = req_msg_id.text ** Description changed: - Ubuntu 24.04.q LTS, wsdd package 2:0.7.1-5 + Ubuntu 24.04.1 LTS, wsdd package 2:0.7.1-5 sudo systemctl status wsdd prints the following warning: Oct 24 16:18:15 lxjima wsdd[85648]: /usr/bin/wsdd:467: DeprecationWarning: Testing an element's truth value will raise an exception in future versions> Oct 24 16:18:15 lxjima wsdd[85648]: if request_header: Basicially it is saying this script will break after a future Phython update. -------------- Here is the code, starting at line 467: if request_header: req_msg_id = request_header.find('./wsa:MessageID', namespaces) if req_msg_id is not None: relates_to = ElementTree.SubElement(header, 'wsa:RelatesTo') relates_to.text = req_msg_id.text -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2085581 Title: wsdd:467: DeprecationWarning: Testing an element's truth value will raise an exception in future versions To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/wsdd/+bug/2085581/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs