Skip to content

Commit

Permalink
Merge pull request CAMI-challenge#128 from fplaza/master
Browse files Browse the repository at this point in the history
Fix SyntaxWarning messages
  • Loading branch information
AlphaSquad authored May 30, 2022
2 parents 5ae37cf + 4f2ab5e commit 23f8505
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ComunityDesign/communitydesign.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ def __init__(
self.id = identifier

def has_valid_values(self):
if not self.validate_characters(self.id) or self.id is '':
if not self.validate_characters(self.id) or self.id == '':
return False

if not self.validate_characters(self.mode) or self.mode is '':
if not self.validate_characters(self.mode) or self.mode == '':
return False

if not self.validate_number(self.genomes_total, self.genomes_real):
Expand Down

0 comments on commit 23f8505

Please sign in to comment.