cpython: Issue #17861: Allow generate_opcode_h to run with a system Python 2.5.
http://hg.python.org/cpython/rev/1fd9c3f6cf68 changeset: 90486:1fd9c3f6cf68 user: Ned Deily <nad@acm.org> date: Mon Apr 28 13:46:36 2014 -0700 summary: Issue #17861: Allow generate_opcode_h to run with a system Python 2.5. Patch by David Bolen. files: Tools/scripts/generate_opcode_h.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py --- a/Tools/scripts/generate_opcode_h.py +++ b/Tools/scripts/generate_opcode_h.py @@ -1,5 +1,7 @@ # This script generates the opcode.h header file. +from __future__ import with_statement + import sys header = """/* Auto-generated by Tools/scripts/generate_opcode_h.py */ #ifndef Py_OPCODE_H -- Repository URL: http://hg.python.org/cpython
participants (1)
-
ned.deily