From: Shivank98 Date: Thu, 18 Oct 2018 19:53:18 +0000 (+0530) Subject: Update opcode.h header comment to mention the source data file (GH-9935) X-Git-Tag: v3.8.0a1~751 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3d1455fe472589c92b9e57b7d35addbb579edba;p=python Update opcode.h header comment to mention the source data file (GH-9935) This is intended to help code explorers find out more about what's defined there. --- diff --git a/Include/opcode.h b/Include/opcode.h index e564bb9d59..2a29e97885 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -1,4 +1,4 @@ -/* Auto-generated by Tools/scripts/generate_opcode_h.py */ +/* Auto-generated by Tools/scripts/generate_opcode_h.py from Lib/opcode.py */ #ifndef Py_OPCODE_H #define Py_OPCODE_H #ifdef __cplusplus diff --git a/Tools/scripts/generate_opcode_h.py b/Tools/scripts/generate_opcode_h.py index 6622a3c815..b184ffa170 100644 --- a/Tools/scripts/generate_opcode_h.py +++ b/Tools/scripts/generate_opcode_h.py @@ -3,7 +3,8 @@ import sys import tokenize -header = """/* Auto-generated by Tools/scripts/generate_opcode_h.py */ +header = """ +/* Auto-generated by Tools/scripts/generate_opcode_h.py from Lib/opcode.py */ #ifndef Py_OPCODE_H #define Py_OPCODE_H #ifdef __cplusplus @@ -12,7 +13,7 @@ extern "C" { /* Instruction opcodes for compiled code */ -""" +""".lstrip() footer = """ /* EXCEPT_HANDLER is a special, implicit block type which is created when