summaryrefslogtreecommitdiff
path: root/contrib/importers/keepassx2pass.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-08-11 01:01:34 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2014-09-21 19:35:54 +0200
commit71a1618e6e49c22bb78ec8e7b164a41df5440a77 (patch)
tree073fe970c073eea18d5e16cfdbf922e5146971c0 /contrib/importers/keepassx2pass.py
parent6cc9bea13492df83aef62c0b109ca22c72afb432 (diff)
downloadpass-71a1618e6e49c22bb78ec8e7b164a41df5440a77.tar.gz
pass-71a1618e6e49c22bb78ec8e7b164a41df5440a77.tar.bz2
pass-71a1618e6e49c22bb78ec8e7b164a41df5440a77.zip
keepassx2pass: Handle unicode
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x]contrib/importers/keepassx2pass.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/importers/keepassx2pass.py b/contrib/importers/keepassx2pass.py
index 5bcdcd2..54d9fbc 100755..100644
--- a/contrib/importers/keepassx2pass.py
+++ b/contrib/importers/keepassx2pass.py
@@ -47,7 +47,7 @@ def password_data(element):
ret = passwd + "\n" if passwd else "\n"
for field in ['username', 'url', 'comment']:
fel = element.find(field)
- children = [str(e.text or '') + str(e.tail or '') for e in list(fel)]
+ children = [unicode(e.text or '') + unicode(e.tail or '') for e in list(fel)]
if len(children) > 0:
children.insert(0, '')
text = (fel.text or '') + "\n".join(children)