Skip to content

Commit

Permalink
style: Fix repeated-equality-comparison (PLR1714) on changed code
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Sep 28, 2024
1 parent e0e0090 commit f5d18fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gui/wxpython/gcp/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3323,7 +3323,7 @@ def OnSrcSelection(self, event):

tmp_map = self.srcselection.GetValue()

if tmp_map != "" and tmp_map != src_map:
if tmp_map not in ("", src_map):
self.new_src_map = tmp_map

def OnTgtRastSelection(self, event):
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/image2target/ii2t_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3282,7 +3282,7 @@ def OnSrcSelection(self, event):

tmp_map = self.srcselection.GetValue()

if tmp_map != "" and tmp_map != src_map:
if tmp_map not in ("", src_map):
self.new_src_map = tmp_map

def OnTgtRastSelection(self, event):
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/photo2image/ip2i_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2381,7 +2381,7 @@ def OnSrcSelection(self, event):

tmp_map = self.srcselection.GetValue()

if tmp_map != "" and tmp_map != src_map:
if tmp_map not in ("", src_map):
self.new_src_map = tmp_map

def OnTgtRastSelection(self, event):
Expand Down

0 comments on commit f5d18fc

Please sign in to comment.