MCPcopy Index your code
hub / github.com/python/cpython / read_or_stop

Function read_or_stop

Lib/tokenize.py:382–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

380 encoding = None
381 default = 'utf-8'
382 def read_or_stop():
383 try:
384 return readline()
385 except StopIteration:
386 return b''
387
388 def check(line, encoding):
389 # Check if the line matches the encoding.

Callers 1

detect_encodingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…