Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _normalize_localtime_str
Function
_normalize_localtime_str
Lib/test/test_tomllib/burntsushi.py:109–110 ·
view source on GitHub ↗
(lt_str: str)
Source
from the content-addressed store, hash-verified
107
108
109
def
_normalize_localtime_str(lt_str: str) -> str:
110
return
lt_str.rstrip(
"0"
)
if
"."
in lt_str
else
lt_str
111
112
113
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