summaryrefslogtreecommitdiffstats
path: root/Tools/scripts
diff options
context:
space:
mode:
authorNed Deily <nad@acm.org>2014-04-28 20:46:36 (GMT)
committerNed Deily <nad@acm.org>2014-04-28 20:46:36 (GMT)
commit7fae75a415cb0c8cac099f5d122d9b7bf3b104bf (patch)
tree6a6db8e62cea0838c14880e6dd1f64df78739623 /Tools/scripts
parent285a163a4ceba7ef9d307f87e5e691732e52b760 (diff)
downloadcpython-7fae75a415cb0c8cac099f5d122d9b7bf3b104bf.zip
cpython-7fae75a415cb0c8cac099f5d122d9b7bf3b104bf.tar.gz
cpython-7fae75a415cb0c8cac099f5d122d9b7bf3b104bf.tar.bz2
Issue #17861: Allow generate_opcode_h to run with a system Python 2.5.
Patch by David Bolen.
Diffstat (limited to 'Tools/scripts')
-rw-r--r--Tools/scripts/generate_opcode_h.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py
index a329a40..efa18a1 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