MCPcopy
hub / github.com/andialbrecht/sqlparse / remove_quotes

Function remove_quotes

sqlparse/utils.py:54–60  ·  view source on GitHub ↗

Helper that removes surrounding quotes from strings.

(val)

Source from the content-addressed store, hash-verified

52
53
54def remove_quotes(val):
55 """Helper that removes surrounding quotes from strings."""
56 if val is None:
57 return
58 if val[0] in ('"', "'", '`') and val[0] == val[-1]:
59 val = val[1:-1]
60 return val
61
62
63def recurse(*cls):

Callers 2

get_parent_nameMethod · 0.90
_get_first_nameMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…