From 7fae75a415cb0c8cac099f5d122d9b7bf3b104bf Mon Sep 17 00:00:00 2001 From: Ned Deily Date: Mon, 28 Apr 2014 13:46:36 -0700 Subject: [PATCH] Issue #17861: Allow generate_opcode_h to run with a system Python 2.5. Patch by David Bolen. --- Tools/scripts/generate_opcode_h.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py index a329a404f4..efa18a1e87 100644 --- 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 -- 2.50.1