aboutsummaryrefslogtreecommitdiff
path: root/python/olm/account.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-04-18 19:07:56 +0100
committerRichard van der Hoff <richard@matrix.org>2017-04-18 19:07:56 +0100
commited6ebb9a4d262c4e08858a09b7bb376901014c8b (patch)
tree4e084f6aa01398cf8ee9ba70ce8ee40f9421f45b /python/olm/account.py
parent001dc1edaa4c5306fbb7c625202788458dadeafa (diff)
PEP8 for python bindings
make the python code adhere to PEP8
Diffstat (limited to 'python/olm/account.py')
-rw-r--r--python/olm/account.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/olm/account.py b/python/olm/account.py
index e2dcca2..3c9ea88 100644
--- a/python/olm/account.py
+++ b/python/olm/account.py
@@ -12,6 +12,7 @@ lib.olm_account.restype = c_void_p
lib.olm_account_last_error.argtypes = [c_void_p]
lib.olm_account_last_error.restype = c_char_p
+
def account_errcheck(res, func, args):
if res == ERR:
raise OlmError("%s: %s" % (
@@ -52,6 +53,8 @@ account_function(
c_size_t,
c_void_p, c_size_t
)
+
+
class Account(object):
def __init__(self):
self.buf = create_string_buffer(lib.olm_account_size())