forked from LBRYCommunity/lbry-sdk
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 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()
|
||||
|
|
Loading…
Reference in a new issue