Add missing function
This commit is contained in:
parent
fd085d2d37
commit
f318f76994
1 changed files with 7 additions and 0 deletions
|
@ -72,6 +72,13 @@ def getFreeSpace():
|
||||||
return free_space
|
return free_space
|
||||||
|
|
||||||
|
|
||||||
|
def sqlquote(value):
|
||||||
|
if type(value) is int:
|
||||||
|
return str(value)
|
||||||
|
else:
|
||||||
|
return "'%s'" % value.replace("'", "''")
|
||||||
|
|
||||||
|
|
||||||
def shellquote(*args):
|
def shellquote(*args):
|
||||||
if len(args) == 1:
|
if len(args) == 1:
|
||||||
return '"%s"' % args[0].replace('"', "")
|
return '"%s"' % args[0].replace('"', "")
|
||||||
|
|
Loading…
Reference in a new issue