Revert to 2 params as isinstance cannot support 3+ (#69)
* Revert to 2 params as isinstance cannot support 3+ * Use basestring for maximum efficiency
This commit is contained in:
parent
5221631b40
commit
ee71a03f96
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ def main():
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
if isinstance(args[1], dict):
|
if isinstance(args[1], dict):
|
||||||
params = args[1]
|
params = args[1]
|
||||||
elif isinstance(args[1], str, unicode):
|
elif isinstance(args[1], basestring):
|
||||||
params = json.loads(args[1])
|
params = json.loads(args[1])
|
||||||
else:
|
else:
|
||||||
params = None
|
params = None
|
||||||
|
|
Loading…
Reference in a new issue