MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / rstrip

Function rstrip

imperative/python/megengine/traced_module/expr.py:32–35  ·  view source on GitHub ↗
(s: str, __chars: str)

Source from the content-addressed store, hash-verified

30
31
32def rstrip(s: str, __chars: str):
33 __chars = re.escape(__chars)
34 s = re.sub(r"^(?P<left>.*?)(?:%s)+$" % __chars, "\g<left>", s)
35 return s
36
37
38def get_suffix_name(prefix: str, name: str):

Callers

nothing calls this directly

Calls 1

subMethod · 0.45

Tested by

no test coverage detected