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

bundles / IPython 9.3.0 / IPython / utils / openpy / strip_encoding_cookie

function

IPython.utils.openpy:strip_encoding_cookie

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

Signature

def strip_encoding_cookie(filelike)

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.lib.demo.openpy.strip_encoding_cookie