def warn_shebangs(template_file: LocalPath): for line in template_file.read().splitlines(): if '#!/' in line: warn( f"Be warned! Template includes '{line}', " "which includes what pyratemp considers a template comment, " "to be omitted from the rendered output. " "\nTo fix, replace '#!' with '#@!!@!'." )