Skip to content

Commit

Permalink
Fix bug in widgets/calculator example
Browse files Browse the repository at this point in the history
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
Reviewed-by: Paulo Alcantara <pcacjr@gmail.com>
  • Loading branch information
igor-bogomolov authored and Paulo Alcantara committed Jan 4, 2012
1 parent 30d63ec commit a73ca8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/widgets/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,9 @@ def calculate(self, rightOperand, pendingOperator):
self.sumSoFar += rightOperand
elif pendingOperator == "-":
self.sumSoFar -= rightOperand
elif pendingOperator == "\327":
elif pendingOperator == u"\327":
self.factorSoFar *= rightOperand
elif pendingOperator == "\367":
elif pendingOperator == u"\367":
if rightOperand == 0.0:
return False

Expand Down

0 comments on commit a73ca8d

Please sign in to comment.