-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2003 from elicn/dev
Misc. Python binding re-arrangements
- Loading branch information
Showing
8 changed files
with
172 additions
and
68 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 |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import sys | ||
import sys as _sys | ||
|
||
if sys.version_info[0] == 2: | ||
from .unicorn_const import ( | ||
UC_VERSION_MAJOR as __MAJOR, | ||
UC_VERSION_MINOR as __MINOR, | ||
UC_VERSION_PATCH as __PATCH | ||
) | ||
|
||
__version__ = "%u.%u.%u" % (__MAJOR, __MINOR, __PATCH) | ||
|
||
if _sys.version_info.major == 2: | ||
from .unicorn_py2 import * | ||
else: | ||
from .unicorn_py3 import * | ||
|
||
__version__ = "%u.%u.%u" % (uc.UC_VERSION_MAJOR, uc.UC_VERSION_MINOR, uc.UC_VERSION_PATCH) |
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 |
---|---|---|
@@ -1,4 +0,0 @@ | ||
# from .arm import UcRegCP | ||
# from .arm64 import UcRegCP64 | ||
# from .intel import UcRegFPR, UcRegMMR, UcRegMSR | ||
# from .types import UcReg128, UcReg256, UcReg512, UcReg, UcLargeReg, UcTupledReg | ||
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
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
Oops, something went wrong.