tox bug adding
This commit is contained in:
parent
bc975826b5
commit
c90822bf57
1 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ class Tox(object):
|
||||||
savedata_size = self.get_savedata_size()
|
savedata_size = self.get_savedata_size()
|
||||||
savedata = create_string_buffer(savedata_size)
|
savedata = create_string_buffer(savedata_size)
|
||||||
Tox.libtoxcore.tox_get_savedata(self._tox_pointer, savedata)
|
Tox.libtoxcore.tox_get_savedata(self._tox_pointer, savedata)
|
||||||
return savedata
|
return savedata[:]
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------------------------------------------
|
||||||
# Connection lifecycle and event loop
|
# Connection lifecycle and event loop
|
||||||
|
@ -1410,7 +1410,7 @@ class Tox(object):
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
tox = Tox(Tox.options_new())
|
tox = Tox(Tox.options_new())
|
||||||
p = tox.self_get_secret_key()
|
p = tox.get_savedata()
|
||||||
print type(p)
|
print type(p)
|
||||||
print p
|
print p
|
||||||
del tox
|
del tox
|
||||||
|
|
Loading…
Reference in a new issue