1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Index: b/3.7/Lib/lib2to3/pgen2/driver.py
===================================================================
--- a/3.7/Lib/lib2to3/pgen2/driver.py
+++ b/3.7/Lib/lib2to3/pgen2/driver.py
@@ -120,7 +120,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)
|