mirror of
https://github.com/holub/mame
synced 2025-06-18 18:28:57 +03:00
work around python version differences (nw)
This commit is contained in:
parent
8cd158fcca
commit
1eb3ffe15c
@ -11,6 +11,11 @@ import xml.sax.saxutils
|
|||||||
import zlib
|
import zlib
|
||||||
|
|
||||||
|
|
||||||
|
# workaround for version incompatibility
|
||||||
|
if sys.version_info > (3, ):
|
||||||
|
long = int
|
||||||
|
|
||||||
|
|
||||||
class ErrorHandler(object):
|
class ErrorHandler(object):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super(ErrorHandler, self).__init__(**kwargs)
|
super(ErrorHandler, self).__init__(**kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user