Skip to content

Commit

Permalink
Merged in takluyver/python-keyring-lib/py3-secret-service (pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 1, 2012
2 parents 5586ca2 + 4e6dc5b commit 2a20171
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions keyring/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ def set_password(self, service, username, password):
"username": username
}
_, session = service_iface.OpenSession("plain", "")

if isinstance(password, unicode):
password = password.encode('utf-8')
secret = dbus.Struct(
(session, "", dbus.ByteArray(password), "text/plain"))
properties = {
Expand Down

0 comments on commit 2a20171

Please sign in to comment.