MCPcopy Create free account
hub / github.com/MCSLTeam/MCSL2 / _normalize_base_url

Function _normalize_base_url

MCSL2Lib/ServerControllers/windowCreator.py:121–125  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

119
120
121def _normalize_base_url(url: str) -> str:
122 u = (url or "").strip()
123 while u.endswith("/"):
124 u = u[:-1]
125 return u
126
127
128def _get_log_tail(log: str, max_lines: int = 220, max_chars: int = 9000) -> str:

Callers 1

__init__Method · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected