lstrip instead of removeprefix for python3.8

This commit is contained in:
Nate Sesti 2023-07-03 22:48:09 -07:00
parent 202f647375
commit b3a80ef04a

View file

@ -21,4 +21,5 @@ def dedent_and_get_common_whitespace(s: str) -> Tuple[str, str]:
if lcp == "":
return s, ""
break
return "\n".join(map(lambda x: x.removeprefix(lcp), lines)), lcp
return "\n".join(map(lambda x: x.lstrip(lcp), lines)), lcp