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 Desktop
Packages, which is subscribed to wsdd in Ubuntu.
https://bugs.launchpad.net/bugs/2085581

Title:
  wsdd:467: DeprecationWarning: Testing an element's truth value will
  raise an exception in future versions

Status in wsdd package in Ubuntu:
  New

Bug description:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/wsdd/+bug/2085581/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to