Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ 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_encoding
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected