summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/build/stable_abi.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/build/stable_abi.py b/Tools/build/stable_abi.py
index 42b2dd9..4cd1cd9 100644
--- a/Tools/build/stable_abi.py
+++ b/Tools/build/stable_abi.py
@@ -183,7 +183,7 @@ def generator(var_name, default_path):
def gen_python3dll(manifest, args, outfile):
"""Generate/check the source for the Windows stable ABI library"""
write = partial(print, file=outfile)
- content = f"""
+ content = f"""\
/* Re-export stable Python ABI */
/* Generated by {SCRIPT_NAME} */
@@ -267,8 +267,8 @@ def gen_doc_annotations(manifest, args, outfile):
def gen_ctypes_test(manifest, args, outfile):
"""Generate/check the ctypes-based test for exported symbols"""
write = partial(print, file=outfile)
- write(textwrap.dedent('''
- # Generated by Tools/scripts/stable_abi.py
+ write(textwrap.dedent(f'''\
+ # Generated by {SCRIPT_NAME}
"""Test that all symbols of the Stable ABI are accessible using ctypes
"""
@@ -341,7 +341,7 @@ def gen_ctypes_test(manifest, args, outfile):
def gen_testcapi_feature_macros(manifest, args, outfile):
"""Generate/check the stable ABI list for documentation annotations"""
write = partial(print, file=outfile)
- write('// Generated by Tools/scripts/stable_abi.py')
+ write(f'// Generated by {SCRIPT_NAME}')
write()
write('// Add an entry in dict `result` for each Stable ABI feature macro.')
write()