-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Adapt pytox to the new tox_system stuff.
- Loading branch information
Showing
26 changed files
with
544 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.mypy_cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/core.pxd | ||
/core.pyx | ||
/log.pxd | ||
/log.pyx | ||
/memory.pxd | ||
/memory.pyx | ||
/network.pxd | ||
/network.pyx | ||
/random.pxd | ||
/random.pyx | ||
/system.pxd | ||
/system.pyx | ||
/time.pxd | ||
/time.pyx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class UseAfterFreeException(Exception): | ||
def __init__(self): | ||
super().__init__( | ||
"object used after it was killed/freed (or it was never initialised)") | ||
|
||
class ToxException(Exception): | ||
pass | ||
|
||
class ApiException(ToxException): | ||
def __init__(self, err): | ||
super().__init__(err) | ||
self.error = err | ||
|
||
class LengthException(ToxException): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# cython: language_level=3 | ||
cdef extern from "tox/toxcore/tox_log.h": | ||
ctypedef struct Tox_Log | ||
|
||
cpdef enum Tox_Log_Level: | ||
TOX_LOG_LEVEL_TRACE, | ||
TOX_LOG_LEVEL_DEBUG, | ||
TOX_LOG_LEVEL_INFO, | ||
TOX_LOG_LEVEL_WARNING, | ||
TOX_LOG_LEVEL_ERROR, | ||
|
||
cdef extern from "tox/toxcore/os_log.h": pass | ||
|
||
cdef class ToxLog: | ||
|
||
cdef Tox_Log *_ptr | ||
|
||
cdef Tox_Log *_get(self) except * |
Oops, something went wrong.