]> granicus.if.org Git - python/commitdiff
Update opcode.h header comment to mention the source data file (GH-9935)
authorShivank98 <shivankgautam98@gmail.com>
Thu, 18 Oct 2018 19:53:18 +0000 (01:23 +0530)
committerZachary Ware <zachary.ware@gmail.com>
Thu, 18 Oct 2018 19:53:18 +0000 (14:53 -0500)
This is intended to help code explorers find out more about what's defined there.

Include/opcode.h
Tools/scripts/generate_opcode_h.py

index e564bb9d598dbc78ce892913b7a63973c90152c5..2a29e978857035a275055bf54d30149de98c616b 100644 (file)
@@ -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
index 6622a3c8155bcb37fe7c14af48956c2abbfa21cf..b184ffa17093426827f882e3294912fccee150bd 100644 (file)
@@ -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