Skip to content

Commit

Permalink
Use correct way of comparing with a literal
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert de Man committed Mar 18, 2022
1 parent 817a50d commit 56c7fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HD_BET/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def preprocess(self, data):
def __repr__(self):
res = ""
for v in vars(self):
if not v.startswith("__") and not v.startswith("_") and v is not 'dataset':
if not v.startswith("__") and not v.startswith("_") and v != 'dataset':
res += (v + ": " + str(self.__getattribute__(v)) + "\n")
return res

Expand Down

0 comments on commit 56c7fb8

Please sign in to comment.