Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _read_char
Method
_read_char
Lib/netrc.py:42–46 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
40
self.pushback = []
41
42
def
_read_char(self):
43
ch = self.instream.read(1)
44
if
ch ==
"\n"
:
45
self.lineno += 1
46
return
ch
47
48
def
get_token(self):
49
if
self.pushback:
Callers
1
get_token
Method · 0.95
Calls
1
read
Method · 0.45
Tested by
no test coverage detected