From: Ned Deily Date: Mon, 28 Apr 2014 20:46:36 +0000 (-0700) Subject: Issue #17861: Allow generate_opcode_h to run with a system Python 2.5. X-Git-Tag: v3.5.0a1~1780 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7fae75a415cb0c8cac099f5d122d9b7bf3b104bf;p=python Issue #17861: Allow generate_opcode_h to run with a system Python 2.5. Patch by David Bolen. --- 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