summaryrefslogtreecommitdiff
path: root/common/src/leap/soledad
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-10-31 13:41:02 -0200
committerdrebs <drebs@leap.se>2013-10-31 13:41:02 -0200
commit5914f47d4f1f3cad1429b11ddce467e7cc65aedb (patch)
treef84978f0047ff0c665195ab5f762544bc9f10d0c /common/src/leap/soledad
parente9e3cd7531d97a67ca4d08f102abe8fdb2585790 (diff)
Fix dict representation so it works on python 2.6.
Diffstat (limited to 'common/src/leap/soledad')
-rw-r--r--common/src/leap/soledad/common/errors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/leap/soledad/common/errors.py b/common/src/leap/soledad/common/errors.py
index 45433627..7c2d7296 100644
--- a/common/src/leap/soledad/common/errors.py
+++ b/common/src/leap/soledad/common/errors.py
@@ -61,9 +61,9 @@ class AlreadyLockedError(errors.U1DBError):
# maps.
for e in [InvalidTokenError, NotLockedError, AlreadyLockedError]:
http_errors.wire_description_to_status.update({
- (e.wire_description, e.status)})
+ e.wire_description: e.status})
errors.wire_description_to_exc.update({
- (e.wire_description, e)})
+ e.wire_description: e})
# u1db error statuses also have to be updated
http_errors.ERROR_STATUSES = set(