Skip to content

Commit

Permalink
Fix Python 3.8 SyntaxWarning: "is not" with a literal
Browse files Browse the repository at this point in the history
/usr/lib/python3/dist-packages/gitsome/github.py:792: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  ('/' + language if language is not 'overall' else '') +
  • Loading branch information
ensarkarabudak committed Dec 7, 2020
1 parent d7c57ab commit 93a60b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitsome/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def trending(self, language, weekly, monthly,
webbrowser.open(
('https://github.com/trending' +
('/developers' if devs else '') +
('/' + language if language is not 'overall' else '') +
('/' + language if language != 'overall' else '') +
url_param))
else:
click.secho(
Expand Down

0 comments on commit 93a60b6

Please sign in to comment.