mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
[util.strings] add parameterize()
This commit is contained in:
parent
bca2c3eed3
commit
7af203e8e3
@ -23,3 +23,6 @@ from .fs import legitimize
|
||||
|
||||
def get_filename(htmlstring):
|
||||
return legitimize(unescape_html(htmlstring))
|
||||
|
||||
def parameterize(string):
|
||||
return "'%s'" % string.replace("'", r"'\''")
|
||||
|
Loading…
Reference in New Issue
Block a user