Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def entries(self):
# FIXME
# It may be better to keep a list of Entries as a (list) property
# ... but that may become out of sync and what is supposed to happen
# when an entry is updated?!
# On the other side this would make things like "e in g.entries" work
return [pykeepass.entry.Entry(element=x, kp=self._kp) for x in self._element.findall('Entry')]
def entry(self):
ancestor = self._element.getparent()
return pykeepass.entry.Entry(element=ancestor, kp=self._kp)