Skip to content

Commit

Permalink
Change comparison is to == to avoid SyntaxWarning (#388)
Browse files Browse the repository at this point in the history
This fixes `SyntaxWarning: "is" with a literal. Did you mean "=="?`.

Signed-off-by: Thanh Phan <[email protected]>
  • Loading branch information
thanhph111 committed Sep 19, 2024
1 parent fa85b1b commit 577ab86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getgauge/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import warnings
from getgauge.registry import registry, MessagesStore, ScreenshotsStore

if sys.version_info[0] is 3:
if sys.version_info[0] == 3:
from collections.abc import MutableMapping
else:
from collections import MutableMapping
Expand Down

0 comments on commit 577ab86

Please sign in to comment.