1.1 --- a/micropython/opt.py Tue Jul 10 01:36:34 2012 +0200
1.2 +++ b/micropython/opt.py Tue Jul 10 18:54:33 2012 +0200
1.3 @@ -365,7 +365,7 @@
1.4 """
1.5
1.6 if not (isinstance(unit, Function) and unit.is_method()):
1.7 - return 0
1.8 + return False
1.9
1.10 expr = self.get_active_value("working")
1.11 return expr and isinstance(expr, LoadName) and expr.attr.name == "self"
1.12 @@ -378,9 +378,9 @@
1.13
1.14 parent = unit.parent
1.15 if parent is context or parent.has_subclass(context) or context.has_subclass(parent):
1.16 - return 1
1.17 + return True
1.18
1.19 - return 0
1.20 + return False
1.21
1.22 def have_empty_handler(self, instruction):
1.23
1.24 @@ -531,8 +531,8 @@
1.25
1.26 if self.should_optimise_unused_handlers() and self.have_empty_handler(instruction):
1.27 self.translation.remove_op()
1.28 - return 1
1.29 + return True
1.30 else:
1.31 - return 0
1.32 + return False
1.33
1.34 # vim: tabstop=4 expandtab shiftwidth=4