diff options
author | Ned Deily <nad@acm.org> | 2014-04-28 20:46:36 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-04-28 20:46:36 (GMT) |
commit | 7fae75a415cb0c8cac099f5d122d9b7bf3b104bf (patch) | |
tree | 6a6db8e62cea0838c14880e6dd1f64df78739623 | |
parent | 285a163a4ceba7ef9d307f87e5e691732e52b760 (diff) | |
download | cpython-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.
-rw-r--r-- | 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 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 |