mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-05 19:16:24 +01:00
refactor(CLI): use raw strings for argparser
That way, we should be save from contained '"' characters, and whatever else. Closes #100
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
if isinstance(v, bool):
|
||||
v = v and 'true' or 'false'
|
||||
elif isinstance(v, basestring):
|
||||
v = '"%s"' % v.replace('"', r'\"')
|
||||
v = 'r##"%s"##' % v
|
||||
elif isinstance(v, list):
|
||||
v = 'vec![%s]' % ','.join('UploadProtocol::%s' % p.capitalize() for p in v)
|
||||
return 'Some(%s)' % v
|
||||
|
||||
Reference in New Issue
Block a user