diff options
author | Gordon Sim <gsim@apache.org> | 2011-04-08 09:34:20 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-04-08 09:34:20 +0000 |
commit | 95e86a3d725a876d3933b850427f94ad0ac93377 (patch) | |
tree | 454fa48c436a7f13283e7b7d02d4c7922fe0246b | |
parent | c3191680e607f25ff75fb6031099d53765510113 (diff) | |
download | qpid-python-95e86a3d725a876d3933b850427f94ad0ac93377.tar.gz |
QPID-3190: always try to eval() quoted tokens
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1090170 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-x | qpid/tools/src/py/qpid-tool | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/tools/src/py/qpid-tool b/qpid/tools/src/py/qpid-tool index 2a06dae6ac..d6bb9bcaea 100755 --- a/qpid/tools/src/py/qpid-tool +++ b/qpid/tools/src/py/qpid-tool @@ -267,10 +267,10 @@ class QmfData(Console): ## ## TODO: use a regex for this instead of this convoluted logic, ## or even consider passing all args through eval() [which would - ## be a minor change to the nterface as string args would then + ## be a minor change to the interface as string args would then ## always need to be quoted as strings within a map/list would ## now] - if arg[0] == '{' or arg[0] == '[' or arg == "True" or arg == "False" or \ + if arg[0] == '{' or arg[0] == '[' or arg[0] == '"' or arg[0] == '\'' or arg == "True" or arg == "False" or \ ((arg.count('.') < 2 and (arg.count('-') == 0 or \ (arg.count('-') == 1 and arg[0] == '-')) and \ arg.replace('.','').replace('-','').isdigit())): |