summaryrefslogtreecommitdiff
path: root/sphinx/pycode
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-12-28 10:57:51 +0100
committerGeorg Brandl <georg@python.org>2010-12-28 10:57:51 +0100
commit683fc2a17849fdab3683edb7f583b7132e1e40d4 (patch)
tree896fa32a6dc8e7041e168a41f239aa6d54297664 /sphinx/pycode
parent50fccb605eed8ce16886040a7257a9ca1adcbdac (diff)
parentffbf6cad723c67d43f2f03fd238cc2e7c159905d (diff)
downloadsphinx-683fc2a17849fdab3683edb7f583b7132e1e40d4.tar.gz
merge with 1.0
Diffstat (limited to 'sphinx/pycode')
-rw-r--r--sphinx/pycode/pgen2/driver.py2
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)