Trying to change the import logic completely. We now have a sys.modules like cache.
This commit is contained in:
1 parent
8fca3f78a1
commit
df9452f210
7 files changed
+132
-63
No files matched your search
@@ -281,7 +281,7 @@ class UserContextParser(object):
|
||||
if self._use_fast_parser:
|
||||
parser = FastParser(self._grammar, self._source, self._path)
|
||||
# Don't pickle that module, because the main module is changing quickly
|
||||
cache.save_parser(self._path, None, parser, pickling=False)
|
||||
cache.save_parser(self._path, parser, pickling=False)
|
||||
else:
|
||||
parser = Parser(self._grammar, self._source, self._path)
|
||||
self._parser_done_callback(parser)
|
||||
|
||||
Reference in new issue
Block a user