Skip to content

Commit ba1bb42

Browse files
fix hashing
1 parent d459325 commit ba1bb42

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

Tools/clinic/clinic.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1791,12 +1791,18 @@ def print_block(self, block, *, core_includes=False):
17911791
write("\n")
17921792

17931793
if core_includes:
1794-
write("\n")
1795-
write('#ifdef Py_BUILD_CORE\n')
1796-
write('#include "pycore_gc.h" // PyGC_Head\n')
1797-
write('#include "pycore_runtime.h" // _Py_ID()\n')
1798-
write('#endif\n')
1799-
write("\n")
1794+
block.output = "\n" + block.output
1795+
# write("\n")
1796+
block.output = '#endif\n' + block.output
1797+
# write('#ifdef Py_BUILD_CORE\n')
1798+
block.output = '#include "pycore_runtime.h" // _Py_ID()\n' + block.output
1799+
# write('#include "pycore_gc.h" // PyGC_Head\n')
1800+
block.output = '#include "pycore_gc.h" // PyGC_Head\n' + block.output
1801+
# write('#include "pycore_runtime.h" // _Py_ID()\n')
1802+
block.output = '#ifdef Py_BUILD_CORE\n' + block.output
1803+
# write('#endif\n')
1804+
block.output = "\n" + block.output
1805+
# write("\n")
18001806

18011807
input = ''.join(block.input)
18021808
output = ''.join(block.output)

0 commit comments

Comments
 (0)