def skip_shebang(stream):
                """Skip shebang line if present, and blank lines between shebang and content."""
                lines = iter(enumerate(stream))
                try:
                    lineno, line = next(lines)
                except StopIteration:
                    return
                if line.startswith(b'#!'):
                    # skip shebang and blank lines
                    for lineno, line in lines:
                        if line.strip():
                            yield lineno, line
                            break
                else:
                    # no shebang
                    yield lineno, line
                yield from lines
Skip shebang line if present, and blank lines between shebang and content.
dev_tools/pylint_copyright_checker.py