Skip to content

Commit e0a578c

Browse files
committed
clinic now supports empty comment lines in Python blocks
1 parent 3cb79f6 commit e0a578c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Include/internal/pycore_cpuinfo.h

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,11 @@ def get_member_mask(bit):
107107
val = format(1 << bit, '008x')
108108
return f'= 0x{val},'
109109
110-
# BUG(picnixz): Clinic does not like when commented lines have empty lines.
111-
# so we use '::' for now to indicate an empty line.
112-
# ::
113110
# The enumeration is rendered as follows:
114-
# ::
111+
#
115112
# <INDENT><MEMBER_NAME> <TAB>= 0x<MASK>, <TAB>// bit = BIT
116113
# ^ ^ ^ ^ ^ ^ ^
117-
# ::
114+
#
118115
# where ^ indicates a column that is a multiple of 4, <MASK> has
119116
# exactly 8 characters and <BIT> has at most 2 characters.
120117
@@ -189,7 +186,7 @@ for group, values in data.items():
189186
Py_CPUID_MASK_EDX_L7S1_AVX_VNNI_INT8 = 0x00000010, // bit = 4
190187
Py_CPUID_MASK_EDX_L7S1_AVX_NE_CONVERT = 0x00000020, // bit = 5
191188
Py_CPUID_MASK_EDX_L7S1_AVX_VNNI_INT16 = 0x00000400, // bit = 10
192-
/*[python end generated code: output=e53c5376296af250 input=46c9e43c1f6f5cf9]*/
189+
/*[python end generated code: output=e53c5376296af250 input=4102387db46d5787]*/
193190
} py_cpuid_feature_mask;
194191
// fmt: on
195192

0 commit comments

Comments
 (0)