The encoding parameter should be used again (includes test), fixes #1167

This commit is contained in:
Dave Halter
2018-07-09 18:25:28 +02:00
parent aa4dcc1631
commit cef769ecd8
3 changed files with 10 additions and 3 deletions

View File

@@ -112,9 +112,10 @@ class Script(object):
self._module_node, source = self._evaluator.parse_and_get_code(
code=source,
path=self.path,
encoding=encoding,
cache=False, # No disk cache, because the current script often changes.
diff_cache=settings.fast_parser,
cache_path=settings.cache_directory
cache_path=settings.cache_directory,
)
debug.speed('parsed')
self._code_lines = parso.split_lines(source, keepends=True)