diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-03-25 11:54:47 +0100 |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-03-25 11:54:47 +0100 |
commit | a9a852c2b123031febf245d3bd37a529e0635d01 (patch) | |
tree | ec082a8bea9d540770ecb74b49ba30b6f9530b26 /Python/modsupport.c | |
parent | e77c974357fa96917e6966d627a69eae8a919b37 (diff) | |
download | cpython-git-a9a852c2b123031febf245d3bd37a529e0635d01.tar.gz |
Modernize Python/makeopcodetargets.py
* Simply use "import opcode" to import the opcode module instead of tricks
using the imp module
* Use context manager for the output file
* Move code into a new main() function
* Replace assert with a regular if to check the number of arguments
* Import modules at top level
Diffstat (limited to 'Python/modsupport.c')
0 files changed, 0 insertions, 0 deletions