diff --git a/Lib/idlelib/CallTips.py b/Lib/idlelib/CallTips.py index 04eccde0b40..7c5f41c73d5 100644 --- a/Lib/idlelib/CallTips.py +++ b/Lib/idlelib/CallTips.py @@ -45,7 +45,7 @@ def _remove_calltip_window(self): if self.calltip: self.calltip.hidetip() self.calltip = None - + def paren_open_event(self, event): self._remove_calltip_window() arg_text = get_arg_text(self.get_object_at_cursor()) @@ -91,9 +91,9 @@ def get_object_at_cursor(self, namespace = sys.modules.copy() namespace.update(__main__.__dict__) try: - return eval(word, namespace) + return eval(word, namespace) except: - pass + pass return None # Can't find an object. def _find_constructor(class_ob):