diff --git a/lark/lark.py b/lark/lark.py index 8c6fcd3..380c32a 100644 --- a/lark/lark.py +++ b/lark/lark.py @@ -302,7 +302,7 @@ class Lark(Serialize): else: if self.options.cache is not True: raise ConfigurationError("cache argument must be bool or str") - # Python2.7 doesn't support * syntax in tuples + cache_fn = tempfile.gettempdir() + '/.lark_cache_%s_%s_%s.tmp' % (cache_md5, *sys.version_info[:2]) if FS.exists(cache_fn):