MCPcopy 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
109def _normalize_localtime_str(lt_str: str) -> str:
110 return lt_str.rstrip("0") if "." in lt_str else lt_str
111
112
113def _normalize_float_str(float_str: str) -> str:

Callers 2

convertFunction · 0.85
normalizeFunction · 0.85

Calls 1

rstripMethod · 0.45

Tested by

no test coverage detected