Skip to content

Commit

Permalink
PEP8: fix flake8 error F632: use ==/!= to compare constant literals (…
Browse files Browse the repository at this point in the history
…str, bytes, int, float, tuple) (#297)
  • Loading branch information
tmszi committed Sep 30, 2020
1 parent 435e079 commit dc67e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grass7/gui/wxpython/wx.metadata/mdlib/mdeditorfactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ def setValue(self, value):
the GUI generating mechanism will create GUI according to template
and all missing tags(xml)-gui(TextCtrls) will be marked by red
'''
if value is None or value is '':
if value is None or value == '':
if self.chckBox:
self.chckBoxEdit.SetValue(True)
self.isChecked = True
Expand Down

0 comments on commit dc67e1c

Please sign in to comment.