mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-22 13:11:08 +00:00
decodetree: re.fullmatch was added in 3.4
Python 3 versions earlier than 3.4 do not have it, use the same workaround that is in place for 3.0. Backports commit 651514df88fd53d537b3b78a7548663cc0816b1b from qemu
This commit is contained in:
parent
75954fa97d
commit
54c93c5198
|
@ -206,7 +206,7 @@ def output(*args):
|
|||
output_fd.write(a)
|
||||
|
||||
|
||||
if sys.version_info >= (3, 0):
|
||||
if sys.version_info >= (3, 4):
|
||||
re_fullmatch = re.fullmatch
|
||||
else:
|
||||
def re_fullmatch(pat, str):
|
||||
|
|
Loading…
Reference in a new issue