From c7271a86caf0418c180164f8d87cf57cf8ac416b Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 8 Jun 2022 14:47:21 +1000 Subject: [PATCH] py/makemoduledefs.py: Remove shebang line and adjust style of comment. This file is not executable so shouldn't have the shebang line. This line can cause issues when building on Windows msvc when the PyPython variable is set to something other than "python", because it reverts back to using the shebang line. The top comment is also changed to """ style which matches all other preprocessing scripts in the py/ directory. Signed-off-by: Damien George --- py/makemoduledefs.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/py/makemoduledefs.py b/py/makemoduledefs.py index 657809db4b..5a19e687ae 100644 --- a/py/makemoduledefs.py +++ b/py/makemoduledefs.py @@ -1,9 +1,9 @@ -#!/usr/bin/env python - -# This pre-processor parses a single file containing a list of -# MP_REGISTER_MODULE(module_name, obj_module) -# These are used to generate a header with the required entries for -# "mp_rom_map_elem_t mp_builtin_module_table[]" in py/objmodule.c +""" +This pre-processor parses a single file containing a list of +MP_REGISTER_MODULE(module_name, obj_module) +These are used to generate a header with the required entries for +"mp_rom_map_elem_t mp_builtin_module_table[]" in py/objmodule.c +""" from __future__ import print_function