diff options
author | Keith Bostic <keith@wiredtiger.com> | 2013-02-20 12:01:24 -0500 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2013-02-20 12:01:24 -0500 |
commit | b64190ecc736bbd98276087ce586e1e7f61cfec3 (patch) | |
tree | 573c4371d937d04c6a177a1b5b8e92a9996fa8ad /dist/api_config.py | |
parent | 8c9be4cf238e1db71cac3f68ea4bded0009525d3 (diff) | |
download | mongo-b64190ecc736bbd98276087ce586e1e7f61cfec3.tar.gz |
If a string type's default value has quotes in it, we have to escape
those quotes when inserting it into other strings.
Diffstat (limited to 'dist/api_config.py')
-rw-r--r-- | dist/api_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/api_config.py b/dist/api_config.py index 37c2f022a77..ce36b082964 100644 --- a/dist/api_config.py +++ b/dist/api_config.py @@ -191,7 +191,7 @@ def get_default(c): return '(%s)' % (','.join('%s=%s' % (subc.name, get_default(subc)) for subc in sorted(c.subconfig))) elif (c.default or t == 'int') and c.default != 'true': - return str(c.default) + return str(c.default).replace('"', '\\"') else: return '' |