| 1 |
From: Stefano Rivera <[email protected]> |
| 2 |
Date: Thu, 19 Mar 2026 13:11:04 -0400 |
| 3 |
Subject: pycparser: Python 2.7 compatibility |
| 4 |
|
| 5 |
Revert https://github.com/eliben/pycparser/pull/494 because it isn't |
| 6 |
compatible with Python 2.7 |
| 7 |
--- |
| 8 |
pycparser223/pycparser/_build_tables.py | 5 ----- |
| 9 |
1 file changed, 5 deletions(-) |
| 10 |
|
| 11 |
diff --git a/pycparser223/pycparser/_build_tables.py b/pycparser223/pycparser/_build_tables.py |
| 12 |
index 4f37107..2a7a8b1 100644 |
| 13 |
--- a/pycparser223/pycparser/_build_tables.py |
| 14 |
+++ b/pycparser223/pycparser/_build_tables.py |
| 15 |
@@ -13,7 +13,6 @@ |
| 16 |
# Insert '.' and '..' as first entries to the search path for modules. |
| 17 |
# Restricted environments like embeddable python do not include the |
| 18 |
# current working directory on startup. |
| 19 |
-import importlib |
| 20 |
import sys |
| 21 |
sys.path[0:0] = ['.', '..'] |
| 22 |
|
| 23 |
@@ -31,10 +30,6 @@ c_parser.CParser( |
| 24 |
yacc_debug=False, |
| 25 |
yacc_optimize=True) |
| 26 |
|
| 27 |
-# Load to compile into .pyc |
| 28 |
-# |
| 29 |
-importlib.invalidate_caches() |
| 30 |
- |
| 31 |
import lextab |
| 32 |
import yacctab |
| 33 |
import c_ast |