MCPcopy
hub / github.com/PyMySQL/PyMySQL / __remove_quotes

Method __remove_quotes

pymysql/optionfile.py:9–14  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

7 configparser.RawConfigParser.__init__(self, **kwargs)
8
9 def __remove_quotes(self, value):
10 quotes = ["'", '"']
11 for quote in quotes:
12 if len(value) >= 2 and value[0] == value[-1] == quote:
13 return value[1:-1]
14 return value
15
16 def optionxform(self, key):
17 return key.lower().replace("_", "-")

Callers 1

getMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected