mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
beautify remove_quotes function
This commit is contained in:
@ -93,15 +93,15 @@ __version__ = info.version
|
||||
|
||||
|
||||
def _remove_quotes(value):
|
||||
if value is not None and value.startswith('"') and value.endswith('"'):
|
||||
value = value[1:-1]
|
||||
|
||||
elif value is not None and value.startswith("'") and value.endswith("'"):
|
||||
value = value[1:-1]
|
||||
|
||||
elif value is None:
|
||||
if value is None:
|
||||
value = ''
|
||||
|
||||
elif value.startswith('"') and value.endswith('"'):
|
||||
value = value[1:-1]
|
||||
|
||||
elif value.startswith("'") and value.endswith("'"):
|
||||
value = value[1:-1]
|
||||
|
||||
return value
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user