Commits

Georg Brandl committed 754f4d1

major.minor version is enough for the grammar pickle.

  • Participants
  • Parent commits 5c67037

Comments (0)

Files changed (1)

File sphinx/pycode/pgen2/driver.py

         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)