[generator][python] Mwm reading speed-up

This commit is contained in:
Maksim Andrianov 2020-06-15 23:17:04 +03:00 committed by mpimenov
parent 163050253f
commit 6c564f5ed7
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ def init(resource_path):
class MwmPygen(mi.Mwm):
def __init__(self, filename: str, parse: bool = True):
def __init__(self, filename: str, parse: bool = False):
super().__init__(filename)
self.mwm = mwm.Mwm(filename, parse)

View file

@ -18,7 +18,7 @@ logger = logging.getLogger(__name__)
class MwmPython(mi.Mwm):
def __init__(self, filename: str, parse: bool = True):
def __init__(self, filename: str, parse: bool = False):
super().__init__(filename)
self.f = open(filename, "rb")