diff options
author | Georg Brandl <georg@python.org> | 2010-12-09 19:18:19 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2010-12-09 19:18:19 +0100 |
commit | b9def3d647aae17008cbce9267a0bfbd8b2a2701 (patch) | |
tree | 850245729012336496de4041846318af780e786a /sphinx/pycode | |
parent | eba5ae5c679422bea0f38ebcf467929400820a37 (diff) | |
download | sphinx-b9def3d647aae17008cbce9267a0bfbd8b2a2701.tar.gz |
major.minor version is enough for the grammar pickle.
Diffstat (limited to 'sphinx/pycode')
-rw-r--r-- | sphinx/pycode/pgen2/driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/pgen2/driver.py b/sphinx/pycode/pgen2/driver.py index 39e347b7..5e6cf9a5 100644 --- a/sphinx/pycode/pgen2/driver.py +++ b/sphinx/pycode/pgen2/driver.py @@ -120,7 +120,7 @@ def load_grammar(gt="Grammar.txt", gp=None, head, tail = os.path.splitext(gt) if tail == ".txt": tail = "" - gp = head + tail + ".".join(map(str, sys.version_info)) + ".pickle" + gp = head + tail + ".".join(map(str, sys.version_info[:2])) + ".pickle" if force or not _newer(gp, gt): logger.info("Generating grammar tables from %s", gt) g = pgen.generate_grammar(gt) |