1. michaeljones
  2. sphinx

Commits

Georg Brandl  committed 754f4d1

major.minor version is enough for the grammar pickle.

Comments (0)

Files changed (1)

File sphinx/pycode/pgen2/driver.py Modified

View file
  • Ignore whitespace
  • Hide word diff
         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)