Skip to content

Commit

Permalink
Fix E721 lint warning (type comparison)
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Jul 11, 2024
1 parent 9521a50 commit 84002aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions python/eups/Product.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,11 +447,11 @@ def getConfig(self, section="DEFAULT", option=None, getType=None):

if option:
try:
if getType == bool:
if getType is bool:
return config.getboolean(section, option)
elif getType == float:
elif getType is float:
return config.getfloat(section, option)
elif getType == int:
elif getType is int:
return config.getint(section, option)
else:
return config.get(section, option)
Expand Down
4 changes: 2 additions & 2 deletions python/eups/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def printVersion(self, strm=sys.stderr):
return 0

def _issubclass(self):
return isinstance(self, EupsCmd) and type(self) != EupsCmd
return isinstance(self, EupsCmd) and type(self) is not EupsCmd

def err(self, msg, volume=0):
"""
Expand Down Expand Up @@ -2885,7 +2885,7 @@ def execute(self):

#-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


class TagsCmd(EupsCmd):

usage = """%prog tags [-h|--help] [options] [tagname] [product]
Expand Down

0 comments on commit 84002aa

Please sign in to comment.