Skip to content

Commit

Permalink
Merge pull request #172 from cclauss/patch-1
Browse files Browse the repository at this point in the history
Use ==/!= to compare str, bytes, and int literals
  • Loading branch information
PatrickAlphaC committed Dec 10, 2019
2 parents 401d262 + cee80fc commit 33c6e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alpha_vantage/alphavantage.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __init__(self, key=None, output_format='json',
'https://www.alphavantage.co/support/#api-key')
self.key = key
self.output_format = output_format
if self.output_format is 'pandas' and not _PANDAS_FOUND:
if self.output_format == 'pandas' and not _PANDAS_FOUND:
raise ValueError("The pandas library was not found, therefore can "
"not be used as an output format, please install "
"manually")
Expand Down

0 comments on commit 33c6e10

Please sign in to comment.