summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/patcomp.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2017-12-22 20:52:10 (GMT)
committerGitHub <noreply@github.com>2017-12-22 20:52:10 (GMT)
commit770a802df7057bcf0d72bbc01026fac8d396e1b3 (patch)
treed384d790ea25a372150934a4d4839711cff42b13 /Lib/lib2to3/patcomp.py
parente8ab7eb5c7a28cb6398d8fdaf24959af527a9ba4 (diff)
downloadcpython-770a802df7057bcf0d72bbc01026fac8d396e1b3.zip
cpython-770a802df7057bcf0d72bbc01026fac8d396e1b3.tar.gz
cpython-770a802df7057bcf0d72bbc01026fac8d396e1b3.tar.bz2
[2.7] bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files (GH-4977) (#4980)
This is more complicated than it should be because we need to preserve the useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar has. We only look for the pickled grammar file with pkgutil.get_data and only if the source file does not exist.. (cherry picked from commit 8a5877165e993afb2633cd48da5222326d3f6e0e)
Diffstat (limited to 'Lib/lib2to3/patcomp.py')
0 files changed, 0 insertions, 0 deletions