You are viewing an older version (9.11.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.11.0 / IPython / utils / openpy / strip_encoding_cookie

function

IPython.utils.openpy:strip_encoding_cookie

source: /IPython/utils/openpy.py :45

Signature

def   strip_encoding_cookie ( filelike : Iterable[str] )  →  Generator[str, None, None]

Summary

Generator to pull lines from a text-mode file, skipping the encoding cookie if it is found in the first two lines.

Aliases

  • IPython.utils.openpy.strip_encoding_cookie