MCPcopy
hub / github.com/rocky/python-uncompyle6 / strip_quotes

Function strip_quotes

uncompyle6/semantics/helper.py:221–231  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

219 return True
220
221def strip_quotes(s):
222 if s.startswith("'''") and s.endswith("'''"):
223 s = s[3:-3]
224 elif s.startswith('"""') and s.endswith('"""'):
225 s = s[3:-3]
226 elif s.startswith("'") and s.endswith("'"):
227 s = s[1:-1]
228 elif s.startswith('"') and s.endswith('"'):
229 s = s[1:-1]
230 pass
231 return s
232
233
234

Callers 3

n_formatted_value2Function · 0.90
n_joined_strFunction · 0.90
n_formatted_value_debugFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected