summaryrefslogtreecommitdiff
path: root/tools/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2011-04-08 09:34:20 +0000
committerGordon Sim <gsim@apache.org>2011-04-08 09:34:20 +0000
commitb5981b93bee2f618b38530642c54f4aec8073f55 (patch)
tree20f8c2cc1783e6223dd4ed103c24f084167dc113 /tools/src
parent9b46771cb35bb32d55098cc38520d3a8a45828b7 (diff)
downloadqpid-python-b5981b93bee2f618b38530642c54f4aec8073f55.tar.gz
QPID-3190: always try to eval() quoted tokens
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1090170 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools/src')
-rwxr-xr-xtools/src/py/qpid-tool4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/py/qpid-tool b/tools/src/py/qpid-tool
index 2a06dae6ac..d6bb9bcaea 100755
--- a/tools/src/py/qpid-tool
+++ b/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())):