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:
kimihiro64 2016-07-13 22:44:02 -05:00 committed by Job Evers‐Meltzer
parent 5221631b40
commit ee71a03f96

View file

@ -35,7 +35,7 @@ def main():
if len(args) > 1:
if isinstance(args[1], dict):
params = args[1]
elif isinstance(args[1], str, unicode):
elif isinstance(args[1], basestring):
params = json.loads(args[1])
else:
params = None
@ -56,4 +56,4 @@ def main():
if __name__ == '__main__':
main()
main()