• Victor Stinner's avatar
    Modernize Python/makeopcodetargets.py · ee0c474c
    Victor Stinner authored
    * 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
    ee0c474c
makeopcodetargets.py 900 Bytes