File: lib2to3-no-pickled-grammar.diff

package info (click to toggle)
python3-stdlib-extensions 3.11.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 28,020 kB
  • sloc: python: 134,527; ansic: 24,386; sh: 213; makefile: 190
file content (14 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/3.8/Lib/lib2to3/pgen2/driver.py
+++ b/3.8/Lib/lib2to3/pgen2/driver.py
@@ -119,7 +119,10 @@ def load_grammar(gt="Grammar.txt", gp=No
     if force or not _newer(gp, gt):
         logger.info("Generating grammar tables from %s", gt)
         g = pgen.generate_grammar(gt)
-        if save:
+        # the pickle files mismatch, when built on different architectures.
+        # don't save these for now. An alternative solution might be to
+        # include the multiarch triplet into the file name
+        if False:
             logger.info("Writing grammar tables to %s", gp)
             try:
                 g.dump(gp)