diff options
author | Walter Bender <walter@sugarlabs.org> | 2010-07-07 12:04:52 (GMT) |
---|---|---|
committer | Walter Bender <walter@sugarlabs.org> | 2010-07-07 12:04:52 (GMT) |
commit | 1a369d53def607f526bc5c9af29b699d68086837 (patch) | |
tree | fe2efa9d100a9fdec5428fad1ef03e3651e4bda0 /game.py | |
parent | 75b7f49c067862dc1bccbd9c93c38b9606292d25 (diff) |
pep8
Diffstat (limited to 'game.py')
-rw-r--r-- | game.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -126,7 +126,7 @@ class Game(): self.deck.hide() self.deck.shuffle() self.grid.deal(self.deck) - if self._find_a_match() is False: + if not self._find_a_match(): self.grid.deal_extra_cards(self.deck) self.matches = 0 self.robot_matches = 0 @@ -149,8 +149,7 @@ class Game(): def _sharing(self): """ Are we sharing? """ - if self.sugar is True and \ - hasattr(self.activity, 'chattube') and \ + if self.sugar and hasattr(self.activity, 'chattube') and \ self.activity.chattube is not None: return True return False |