Remove sphinx version from the filename of compiled grammar files

Now sphinx bundles the compiled grammar files.  Then it will be replaced
on upgrading sphinx.  So the sphinx version is not needed on its
filename.
This commit is contained in:
Takeshi KOMIYA 2016-07-12 12:10:36 +09:00
parent 2ccb75c98f
commit 1cabc17edb

View File

@ -113,8 +113,7 @@ def get_compiled_path(filename):
head, tail = os.path.splitext(filename)
if tail == ".txt":
tail = ""
# embed Sphinx major version for the case we ever change the grammar...
return "%s%s-sphinx%s.pickle" % (head, tail, ".".join(map(str, sphinx.version_info[:2])))
return "%s%s.pickle" % (head, tail)
def compile_grammar(gt='Grammar.txt', logger=None):