Commit Graph

7 Commits

Author SHA1 Message Date
Victor Stinner 213cc388c7 Reintroduce Python2 support in generate_opcode_h.py
Issue #28821.

Add also a message to show that the command did something :-)
2016-11-28 18:13:52 +01:00
Victor Stinner 6193ecd779 Fix a ResourceWarning in generate_opcode_h.py
Use a context manager to close the Python file. Replace also open() with
tokenize.open() to handle coding cookie if any in Lib/opcode.py.
2016-11-25 11:59:52 +01:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D) a68c1bca7b Remove legacy "from __future__ import with_statement" lines. 2016-09-08 13:47:41 -07:00
Serhiy Storchaka 3028c955fa Issue #24288: Generated opcode.h no longer contains trailing spaces and tabs. 2015-05-27 21:31:33 +03:00
Ned Deily 7fae75a415 Issue #17861: Allow generate_opcode_h to run with a system Python 2.5.
Patch by David Bolen.
2014-04-28 13:46:36 -07:00
Thomas Wouters 67d8dc1f58 Fix Tools/scripts/generate_opcode_h.py from issue #17861 to work correctly
when building in a separate object tree. More people should build this way.
This may still fail if the source is unwritable, I haven't tested that yet.
2014-04-17 01:13:29 +02:00
Kushal Das 02d23a212a Closes Issue 17861: Autogenerate Include/opcode.h from opcode.py.
It includes required changes in Makefile.pre.in and configure.ac
among other files.
2014-04-15 23:50:06 +05:30