summaryrefslogtreecommitdiff
path: root/sphinx/pycode
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2016-07-12 12:10:36 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2016-07-12 12:15:46 +0900
commit1cabc17edb0c61a7c702c72f98ada38ae0ecaa22 (patch)
tree58458ca9a0a589ce35a43cb55044a5a3c2a76e05 /sphinx/pycode
parent2ccb75c98fbe7e69e4689725affa268e7c538315 (diff)
downloadsphinx-git-1cabc17edb0c61a7c702c72f98ada38ae0ecaa22.tar.gz
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.
Diffstat (limited to 'sphinx/pycode')
-rw-r--r--sphinx/pycode/pgen2/driver.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/pycode/pgen2/driver.py b/sphinx/pycode/pgen2/driver.py
index d321856d2..90476ed00 100644
--- a/sphinx/pycode/pgen2/driver.py
+++ b/sphinx/pycode/pgen2/driver.py
@@ -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):