Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ is_onlyws
Method
is_onlyws
Lib/email/header.py:578–579 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
576
self._initial_size = 0
577
578
def
is_onlyws(self):
579
return
self._initial_size==0 and (not self or str(self).isspace())
580
581
def
part_count(self):
582
return
super().__len__()
Callers
1
newline
Method · 0.80
Calls
2
str
Function · 0.85
isspace
Method · 0.80
Tested by
no test coverage detected