changeset: 90486:1fd9c3f6cf68 user: Ned Deily date: Mon Apr 28 13:46:36 2014 -0700 files: Tools/scripts/generate_opcode_h.py description: Issue #17861: Allow generate_opcode_h to run with a system Python 2.5. Patch by David Bolen. diff -r 7bb1bda5dcef -r 1fd9c3f6cf68 Tools/scripts/generate_opcode_h.py --- a/Tools/scripts/generate_opcode_h.py Mon Apr 28 21:12:11 2014 +0200 +++ b/Tools/scripts/generate_opcode_h.py Mon Apr 28 13:46:36 2014 -0700 @@ -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