From e3d1455fe472589c92b9e57b7d35addbb579edba Mon Sep 17 00:00:00 2001 From: Shivank98 Date: Fri, 19 Oct 2018 01:23:18 +0530 Subject: [PATCH] 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. --- Include/opcode.h | 2 +- Tools/scripts/generate_opcode_h.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Include/opcode.h b/Include/opcode.h index e564bb9d598..2a29e978857 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 6622a3c8155..b184ffa1709 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 @@ /* Instruction opcodes for compiled code */ -""" +""".lstrip() footer = """ /* EXCEPT_HANDLER is a special, implicit block type which is created when