From c90822bf574c146c7006bf465398476fa3be98fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=92=D0=BB=D0=B0?= =?UTF-8?q?=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=D0=BE=D0=B2=D0=B8=D1=87?= Date: Tue, 15 Mar 2016 21:18:01 +0300 Subject: [PATCH] tox bug adding --- src/tox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tox.py b/src/tox.py index e0c87af..3ec7bed 100644 --- a/src/tox.py +++ b/src/tox.py @@ -182,7 +182,7 @@ class Tox(object): savedata_size = self.get_savedata_size() savedata = create_string_buffer(savedata_size) Tox.libtoxcore.tox_get_savedata(self._tox_pointer, savedata) - return savedata + return savedata[:] # ----------------------------------------------------------------------------------------------------------------- # Connection lifecycle and event loop @@ -1410,7 +1410,7 @@ class Tox(object): if __name__ == '__main__': tox = Tox(Tox.options_new()) - p = tox.self_get_secret_key() + p = tox.get_savedata() print type(p) print p del tox