Dear Maintainer,
I'm on Debian trixie, but had other reason to allow testing packages
(pinned to not auto-install/upgrade). Due to wsdd having been removed
for trixie release the system then picked up the testing version.
In this version I see this logged:
2025-10-13T10:17:11.990915+01:00 emilia gvfsd[398794]: /usr/bin/wsdd:649: DeprecationWarning: Testing an element's truth value will always return True in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
which is from this section of code:
646 elif dialect == WSDP_URI + '/Relationship':
647 host_xpath = 'wsdp:Relationship[@Type="{}/host"]/wsdp:Host' .format(WSDP_URI)
648 host_sec = section.find(host_xpath, namespaces)
649 if (host_sec):
650 self.extract_host_props(host_sec)
651 else:
652 logger.debug('unknown metadata dialect ({})'.format(dialect ))
So, presumably `if (host_sec):` needs changing to `if host_sec is not
None:` or similar. Actually, I'm wondering why there are () on the
current version, perhaps those just need stripping ?
Obviously it currently works well enough, but will need correcting for
whatever future Python version changes the behaviour.