Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ _normalize_localtime_str
Function
_normalize_localtime_str
Lib/test/test_tomllib/burntsushi.py:92–93 ·
view source on GitHub ↗
(lt_str: str)
Source
from the content-addressed store, hash-verified
90
91
92
def
_normalize_localtime_str(lt_str: str) -> str:
93
return
lt_str.rstrip(
"0"
)
if
"."
in lt_str
else
lt_str
94
95
96
def
_normalize_float_str(float_str: str) -> str:
Callers
2
convert
Function · 0.85
normalize
Function · 0.85
Calls
1
rstrip
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…