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
V
Victor Stinner committed
a9a852c2b123031febf245d3bd37a529e0635d01
Parent: e77c974