]> granicus.if.org Git - python/commitdiff
Issue #17861: Allow generate_opcode_h to run with a system Python 2.5.
authorNed Deily <nad@acm.org>
Mon, 28 Apr 2014 20:46:36 +0000 (13:46 -0700)
committerNed Deily <nad@acm.org>
Mon, 28 Apr 2014 20:46:36 +0000 (13:46 -0700)
Patch by David Bolen.

Tools/scripts/generate_opcode_h.py

index a329a404f463ed7efd7d6cdbf47a887f463a79a5..efa18a1e872774892dda40130c69735129082c42 100644 (file)
@@ -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