From b5981b93bee2f618b38530642c54f4aec8073f55 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Fri, 8 Apr 2011 09:34:20 +0000 Subject: 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 --- tools/src/py/qpid-tool | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') 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())): -- cgit v1.2.1