summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2014-04-15 20:49:06 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2014-04-15 20:49:06 +0300
commit6baa29295145ac9e1eb53b229a4b96567a35695d (patch)
tree75d6970cef84adcd43cfe5a7cbad305871b3b7a2 /efl
parent5fcc33b17a69b8a7ad57022e01d37404fdd97254 (diff)
Code cleanup: Remove unused exception instances
This also gets rid of the old style syntax.
Diffstat (limited to 'efl')
-rw-r--r--efl/ecore/efl.ecore.pyx2
-rw-r--r--efl/ecore/efl.ecore_animator.pxi2
-rw-r--r--efl/ecore/efl.ecore_events.pxi2
-rw-r--r--efl/ecore/efl.ecore_exe.pxi8
-rw-r--r--efl/ecore/efl.ecore_fd_handler.pxi6
-rw-r--r--efl/ecore/efl.ecore_file_download.pxi4
-rw-r--r--efl/ecore/efl.ecore_file_monitor.pxi2
-rw-r--r--efl/edje/efl.edje_object.pxi6
-rw-r--r--efl/elementary/cnp_callbacks.pxi12
-rw-r--r--efl/elementary/entry.pyx4
-rw-r--r--efl/elementary/fileselector.pyx2
-rw-r--r--efl/elementary/gengrid.pyx12
-rw-r--r--efl/elementary/genlist.pyx12
-rw-r--r--efl/elementary/gesture_layer.pyx8
-rw-r--r--efl/elementary/index.pyx4
-rw-r--r--efl/elementary/layout_class.pyx2
-rw-r--r--efl/elementary/map.pyx6
-rw-r--r--efl/elementary/multibuttonentry.pyx4
-rw-r--r--efl/elementary/object.pyx6
-rw-r--r--efl/elementary/object_item.pyx4
-rw-r--r--efl/elementary/slideshow.pyx6
-rw-r--r--efl/elementary/store.pyx6
-rw-r--r--efl/elementary/toolbar.pyx2
-rw-r--r--efl/elementary/transit.pyx6
-rw-r--r--efl/elementary/web.pyx2
-rw-r--r--efl/emotion/efl.emotion.pyx4
-rw-r--r--efl/ethumb/efl.ethumb_client.pyx6
-rw-r--r--efl/evas/efl.evas_canvas_callbacks.pxi4
-rw-r--r--efl/evas/efl.evas_object.pxi2
-rw-r--r--efl/evas/efl.evas_object_callbacks.pxi4
-rw-r--r--efl/evas/efl.evas_object_smart.pxi48
31 files changed, 99 insertions, 99 deletions
diff --git a/efl/ecore/efl.ecore.pyx b/efl/ecore/efl.ecore.pyx
index 9ea43ea..4982e64 100644
--- a/efl/ecore/efl.ecore.pyx
+++ b/efl/ecore/efl.ecore.pyx
@@ -254,7 +254,7 @@ cdef Eina_Bool _ecore_task_cb(void *data) with gil:
254 254
255 try: 255 try:
256 ret = obj._task_exec() 256 ret = obj._task_exec()
257 except Exception, e: 257 except Exception:
258 traceback.print_exc() 258 traceback.print_exc()
259 ret = 0 259 ret = 0
260 260
diff --git a/efl/ecore/efl.ecore_animator.pxi b/efl/ecore/efl.ecore_animator.pxi
index b1c842a..930ac4e 100644
--- a/efl/ecore/efl.ecore_animator.pxi
+++ b/efl/ecore/efl.ecore_animator.pxi
@@ -77,7 +77,7 @@ cdef Eina_Bool _ecore_timeline_cb(void *data, double pos) with gil:
77 77
78 try: 78 try:
79 ret = obj.func(pos, *obj.args, **obj.kargs) 79 ret = obj.func(pos, *obj.args, **obj.kargs)
80 except: 80 except Exception:
81 traceback.print_exc() 81 traceback.print_exc()
82 82
83 if not ret: 83 if not ret:
diff --git a/efl/ecore/efl.ecore_events.pxi b/efl/ecore/efl.ecore_events.pxi
index 10fcd35..5e55edc 100644
--- a/efl/ecore/efl.ecore_events.pxi
+++ b/efl/ecore/efl.ecore_events.pxi
@@ -41,7 +41,7 @@ cdef Eina_Bool event_handler_cb(void *data, int type, void *event) with gil:
41 41
42 try: 42 try:
43 r = handler._exec(event) 43 r = handler._exec(event)
44 except Exception, e: 44 except Exception:
45 traceback.print_exc() 45 traceback.print_exc()
46 r = 0 46 r = 0
47 47
diff --git a/efl/ecore/efl.ecore_exe.pxi b/efl/ecore/efl.ecore_exe.pxi
index ce103c2..9c32b52 100644
--- a/efl/ecore/efl.ecore_exe.pxi
+++ b/efl/ecore/efl.ecore_exe.pxi
@@ -83,10 +83,10 @@ cdef Eina_Bool _exe_event_filter_cb(void *data, int type, void *event) with gil:
83 for cb in cbs: 83 for cb in cbs:
84 try: 84 try:
85 cb[0](self.owner, e, *cb[1], **cb[2]) 85 cb[0](self.owner, e, *cb[1], **cb[2])
86 except: 86 except Exception:
87 traceback.print_exc() 87 traceback.print_exc()
88 88
89 except: 89 except Exception:
90 traceback.print_exc() 90 traceback.print_exc()
91 91
92 return 1 # always return true, no matter what 92 return 1 # always return true, no matter what
@@ -128,7 +128,7 @@ cdef class ExeEventFilter:
128 def callback_del(self, func, args, kargs): 128 def callback_del(self, func, args, kargs):
129 try: 129 try:
130 self.callbacks.remove((func, args, kargs)) 130 self.callbacks.remove((func, args, kargs))
131 except ValueError, e: 131 except ValueError:
132 raise ValueError( 132 raise ValueError(
133 "callback is not registered: %s, args=%s, kargs=%s" % 133 "callback is not registered: %s, args=%s, kargs=%s" %
134 (func, args, kargs)) 134 (func, args, kargs))
@@ -161,7 +161,7 @@ cdef void _ecore_exe_pre_free_cb(void *data, const Ecore_Exe *exe) with gil:
161 else: 161 else:
162 obj = <Exe>data 162 obj = <Exe>data
163 obj._unset_obj() 163 obj._unset_obj()
164 except Exception, e: 164 except Exception:
165 traceback.print_exc() 165 traceback.print_exc()
166 166
167 167
diff --git a/efl/ecore/efl.ecore_fd_handler.pxi b/efl/ecore/efl.ecore_fd_handler.pxi
index 32911e1..f9b0d6c 100644
--- a/efl/ecore/efl.ecore_fd_handler.pxi
+++ b/efl/ecore/efl.ecore_fd_handler.pxi
@@ -25,7 +25,7 @@ cdef void fd_handler_prepare_cb(void *data, Ecore_Fd_Handler *fdh) with gil:
25 func, args, kargs = obj._prepare_callback 25 func, args, kargs = obj._prepare_callback
26 try: 26 try:
27 func(obj, *args, **kargs) 27 func(obj, *args, **kargs)
28 except Exception, e: 28 except Exception:
29 traceback.print_exc() 29 traceback.print_exc()
30 30
31 31
@@ -46,7 +46,7 @@ cdef Eina_Bool fd_handler_cb(void *data, Ecore_Fd_Handler *fdh) with gil:
46 46
47 try: 47 try:
48 r = bool(obj._exec()) 48 r = bool(obj._exec())
49 except Exception, e: 49 except Exception:
50 traceback.print_exc() 50 traceback.print_exc()
51 r = 0 51 r = 0
52 52
@@ -94,7 +94,7 @@ cdef class FdHandler(object):
94 if not isinstance(fd, (int, long)): 94 if not isinstance(fd, (int, long)):
95 try: 95 try:
96 fd = fd.fileno() 96 fd = fd.fileno()
97 except AttributeError, e: 97 except AttributeError:
98 raise ValueError("fd must be integer or have fileno()") 98 raise ValueError("fd must be integer or have fileno()")
99 99
100 self.obj = ecore_main_fd_handler_add(fd, 100 self.obj = ecore_main_fd_handler_add(fd,
diff --git a/efl/ecore/efl.ecore_file_download.pxi b/efl/ecore/efl.ecore_file_download.pxi
index ca27efe..251db13 100644
--- a/efl/ecore/efl.ecore_file_download.pxi
+++ b/efl/ecore/efl.ecore_file_download.pxi
@@ -21,7 +21,7 @@ cdef void _completion_cb(void *data, const char *file, int status) with gil:
21 obj = <FileDownload>data 21 obj = <FileDownload>data
22 try: 22 try:
23 obj._exec_completion(file, status) 23 obj._exec_completion(file, status)
24 except Exception, e: 24 except Exception:
25 traceback.print_exc() 25 traceback.print_exc()
26 26
27cdef int _progress_cb(void *data, const char *file, long int dltotal, 27cdef int _progress_cb(void *data, const char *file, long int dltotal,
@@ -29,7 +29,7 @@ cdef int _progress_cb(void *data, const char *file, long int dltotal,
29 obj = <FileDownload>data 29 obj = <FileDownload>data
30 try: 30 try:
31 return obj._exec_progress(file, dltotal, dlnow, ultotal, ulnow) 31 return obj._exec_progress(file, dltotal, dlnow, ultotal, ulnow)
32 except Exception, e: 32 except Exception:
33 traceback.print_exc() 33 traceback.print_exc()
34 34
35 35
diff --git a/efl/ecore/efl.ecore_file_monitor.pxi b/efl/ecore/efl.ecore_file_monitor.pxi
index f00746c..9f767e1 100644
--- a/efl/ecore/efl.ecore_file_monitor.pxi
+++ b/efl/ecore/efl.ecore_file_monitor.pxi
@@ -22,7 +22,7 @@ cdef void _file_monitor_cb(void *data, Ecore_File_Monitor *em, Ecore_File_Event
22 obj = <FileMonitor>data 22 obj = <FileMonitor>data
23 try: 23 try:
24 obj._exec_monitor(event, path) 24 obj._exec_monitor(event, path)
25 except Exception, e: 25 except Exception:
26 traceback.print_exc() 26 traceback.print_exc()
27 27
28 28
diff --git a/efl/edje/efl.edje_object.pxi b/efl/edje/efl.edje_object.pxi
index 124a71b..2a49060 100644
--- a/efl/edje/efl.edje_object.pxi
+++ b/efl/edje/efl.edje_object.pxi
@@ -27,7 +27,7 @@ cdef void text_change_cb(void *data,
27 func, args, kargs = self._text_change_cb 27 func, args, kargs = self._text_change_cb
28 try: 28 try:
29 func(self, _ctouni(part), *args, **kargs) 29 func(self, _ctouni(part), *args, **kargs)
30 except Exception, e: 30 except Exception:
31 traceback.print_exc() 31 traceback.print_exc()
32 32
33 33
@@ -42,7 +42,7 @@ cdef void message_handler_cb(void *data,
42 func, args, kargs = self._message_handler_cb 42 func, args, kargs = self._message_handler_cb
43 try: 43 try:
44 func(self, Message_from_type(type, id, msg), *args, **kargs) 44 func(self, Message_from_type(type, id, msg), *args, **kargs)
45 except Exception, e: 45 except Exception:
46 traceback.print_exc() 46 traceback.print_exc()
47 47
48 48
@@ -54,7 +54,7 @@ cdef void signal_cb(void *data, Evas_Object *obj,
54 for func, args, kargs in lst: 54 for func, args, kargs in lst:
55 try: 55 try:
56 func(self, _ctouni(emission), _ctouni(source), *args, **kargs) 56 func(self, _ctouni(emission), _ctouni(source), *args, **kargs)
57 except Exception, e: 57 except Exception:
58 traceback.print_exc() 58 traceback.print_exc()
59 59
60 60
diff --git a/efl/elementary/cnp_callbacks.pxi b/efl/elementary/cnp_callbacks.pxi
index f2542e7..10044e7 100644
--- a/efl/elementary/cnp_callbacks.pxi
+++ b/efl/elementary/cnp_callbacks.pxi
@@ -154,7 +154,7 @@ cdef Elm_Object_Item *py_elm_xy_item_get_cb(Evas_Object *obj, Evas_Coord x, Evas
154 try: 154 try:
155 ret = o.data["xy_item_get_cb"](o, x, y) 155 ret = o.data["xy_item_get_cb"](o, x, y)
156 it, xpos1, ypos1 = ret 156 it, xpos1, ypos1 = ret
157 except: 157 except Exception:
158 traceback.print_exc() 158 traceback.print_exc()
159 return NULL 159 return NULL
160 160
@@ -212,7 +212,7 @@ cdef Evas_Object *py_elm_drag_icon_create_cb(
212 212
213 try: 213 try:
214 ret = createicon(win1, xoff1, yoff1, createdata) 214 ret = createicon(win1, xoff1, yoff1, createdata)
215 except: 215 except Exception:
216 traceback.print_exc() 216 traceback.print_exc()
217 return NULL 217 return NULL
218 218
@@ -260,7 +260,7 @@ cdef void py_elm_drag_done_cb(void *data, Evas_Object *obj, Eina_Bool accepted)
260 260
261 try: 261 try:
262 donecb(o, <bint>accepted, donedata) 262 donecb(o, <bint>accepted, donedata)
263 except: 263 except Exception:
264 traceback.print_exc() 264 traceback.print_exc()
265 265
266cdef void py_elm_drag_accept_cb(void *data, Evas_Object *obj, Eina_Bool doaccept) with gil: 266cdef void py_elm_drag_accept_cb(void *data, Evas_Object *obj, Eina_Bool doaccept) with gil:
@@ -297,7 +297,7 @@ cdef void py_elm_drag_pos_cb(void *data, Evas_Object *obj,
297 297
298 try: 298 try:
299 dragpos(o, x, y, action, dragdata) 299 dragpos(o, x, y, action, dragdata)
300 except: 300 except Exception:
301 traceback.print_exc() 301 traceback.print_exc()
302 302
303cdef void py_elm_drag_item_container_pos( 303cdef void py_elm_drag_item_container_pos(
@@ -354,7 +354,7 @@ cdef Eina_Bool py_elm_drop_item_container_cb(
354 354
355 try: 355 try:
356 ret = cb(o, item, evdata, xposret, yposret, cbdata) 356 ret = cb(o, item, evdata, xposret, yposret, cbdata)
357 except: 357 except Exception:
358 traceback.print_exc() 358 traceback.print_exc()
359 return 0 359 return 0
360 360
@@ -428,7 +428,7 @@ cdef Eina_Bool py_elm_item_container_data_get_cb(
428 try: 428 try:
429 func = o.data["item_container_data_get_cb"] 429 func = o.data["item_container_data_get_cb"]
430 func(o, item, ret) 430 func(o, item, ret)
431 except: 431 except Exception:
432 traceback.print_exc() 432 traceback.print_exc()
433 return 0 433 return 0
434 434
diff --git a/efl/elementary/entry.pyx b/efl/elementary/entry.pyx
index 6ffcdfc..898c98a 100644
--- a/efl/elementary/entry.pyx
+++ b/efl/elementary/entry.pyx
@@ -542,7 +542,7 @@ cdef void _entry_context_menu_callback(void *data, Evas_Object *obj, void *event
542 try: 542 try:
543 o = object_from_instance(obj) 543 o = object_from_instance(obj)
544 callback(o, *a, **ka) 544 callback(o, *a, **ka)
545 except Exception as e: 545 except Exception:
546 traceback.print_exc() 546 traceback.print_exc()
547 547
548@DEPRECATED("1.8", "Use markup_to_utf8() instead.") 548@DEPRECATED("1.8", "Use markup_to_utf8() instead.")
@@ -702,7 +702,7 @@ cdef void py_elm_entry_filter_cb(void *data, Evas_Object *entry, char **text) wi
702 cb_func, cb_data = <object>data 702 cb_func, cb_data = <object>data
703 try: 703 try:
704 ret = cb_func(en, _touni(text[0]), cb_data) 704 ret = cb_func(en, _touni(text[0]), cb_data)
705 except: 705 except Exception:
706 traceback.print_exc() 706 traceback.print_exc()
707 707
708 if ret is None: 708 if ret is None:
diff --git a/efl/elementary/fileselector.pyx b/efl/elementary/fileselector.pyx
index ce65bb8..28e5609 100644
--- a/efl/elementary/fileselector.pyx
+++ b/efl/elementary/fileselector.pyx
@@ -171,7 +171,7 @@ cdef Eina_Bool py_elm_fileselector_custom_filter_cb(const char *path, Eina_Bool
171 cb_func, cb_data = <object>data 171 cb_func, cb_data = <object>data
172 try: 172 try:
173 return cb_func(_ctouni(path), is_dir, cb_data) 173 return cb_func(_ctouni(path), is_dir, cb_data)
174 except: 174 except Exception:
175 traceback.print_exc() 175 traceback.print_exc()
176 return 0 176 return 0
177 177
diff --git a/efl/elementary/gengrid.pyx b/efl/elementary/gengrid.pyx
index 9d11ffa..74d91a3 100644
--- a/efl/elementary/gengrid.pyx
+++ b/efl/elementary/gengrid.pyx
@@ -319,7 +319,7 @@ cdef char *_py_elm_gengrid_item_text_get(void *data, Evas_Object *obj, const cha
319 try: 319 try:
320 o = object_from_instance(obj) 320 o = object_from_instance(obj)
321 ret = func(o, u, item.item_data) 321 ret = func(o, u, item.item_data)
322 except: 322 except Exception:
323 traceback.print_exc() 323 traceback.print_exc()
324 return NULL 324 return NULL
325 325
@@ -343,7 +343,7 @@ cdef Evas_Object *_py_elm_gengrid_item_content_get(void *data, Evas_Object *obj,
343 343
344 try: 344 try:
345 icon = func(o, u, item.item_data) 345 icon = func(o, u, item.item_data)
346 except: 346 except Exception:
347 traceback.print_exc() 347 traceback.print_exc()
348 return NULL 348 return NULL
349 349
@@ -364,7 +364,7 @@ cdef Eina_Bool _py_elm_gengrid_item_state_get(void *data, Evas_Object *obj, cons
364 try: 364 try:
365 o = object_from_instance(obj) 365 o = object_from_instance(obj)
366 ret = func(o, part, item.item_data) 366 ret = func(o, part, item.item_data)
367 except: 367 except Exception:
368 traceback.print_exc() 368 traceback.print_exc()
369 return 0 369 return 0
370 370
@@ -382,7 +382,7 @@ cdef void _py_elm_gengrid_object_item_del(void *data, Evas_Object *obj) with gil
382 try: 382 try:
383 o = object_from_instance(obj) 383 o = object_from_instance(obj)
384 func(o, item.item_data) 384 func(o, item.item_data)
385 except: 385 except Exception:
386 traceback.print_exc() 386 traceback.print_exc()
387 387
388 item._unset_obj() 388 item._unset_obj()
@@ -398,7 +398,7 @@ cdef void _py_elm_gengrid_item_func(void *data, Evas_Object *obj, void *event_in
398 try: 398 try:
399 o = object_from_instance(obj) 399 o = object_from_instance(obj)
400 item.cb_func(item, o, item.func_data) 400 item.cb_func(item, o, item.func_data)
401 except: 401 except Exception:
402 traceback.print_exc() 402 traceback.print_exc()
403 403
404cdef int _gengrid_compare_cb(const void *data1, const void *data2) with gil: 404cdef int _gengrid_compare_cb(const void *data1, const void *data2) with gil:
@@ -420,7 +420,7 @@ cdef int _gengrid_compare_cb(const void *data1, const void *data2) with gil:
420 if ret is not None: 420 if ret is not None:
421 try: 421 try:
422 return ret 422 return ret
423 except: 423 except Exception:
424 traceback.print_exc() 424 traceback.print_exc()
425 return 0 425 return 0
426 else: 426 else:
diff --git a/efl/elementary/genlist.pyx b/efl/elementary/genlist.pyx
index 0029f7d..9d08466 100644
--- a/efl/elementary/genlist.pyx
+++ b/efl/elementary/genlist.pyx
@@ -586,7 +586,7 @@ cdef char *_py_elm_genlist_item_text_get(void *data, Evas_Object *obj, const cha
586 try: 586 try:
587 o = object_from_instance(obj) 587 o = object_from_instance(obj)
588 ret = func(o, u, item.item_data) 588 ret = func(o, u, item.item_data)
589 except: 589 except Exception:
590 traceback.print_exc() 590 traceback.print_exc()
591 return NULL 591 return NULL
592 592
@@ -610,7 +610,7 @@ cdef Evas_Object *_py_elm_genlist_item_content_get(void *data, Evas_Object *obj,
610 610
611 try: 611 try:
612 icon = func(o, u, item.item_data) 612 icon = func(o, u, item.item_data)
613 except: 613 except Exception:
614 traceback.print_exc() 614 traceback.print_exc()
615 return NULL 615 return NULL
616 616
@@ -631,7 +631,7 @@ cdef Eina_Bool _py_elm_genlist_item_state_get(void *data, Evas_Object *obj, cons
631 try: 631 try:
632 o = object_from_instance(obj) 632 o = object_from_instance(obj)
633 ret = func(o, u, item.item_data) 633 ret = func(o, u, item.item_data)
634 except: 634 except Exception:
635 traceback.print_exc() 635 traceback.print_exc()
636 return 0 636 return 0
637 637
@@ -649,7 +649,7 @@ cdef void _py_elm_genlist_object_item_del(void *data, Evas_Object *obj) with gil
649 try: 649 try:
650 o = object_from_instance(obj) 650 o = object_from_instance(obj)
651 func(o, item.item_data) 651 func(o, item.item_data)
652 except: 652 except Exception:
653 traceback.print_exc() 653 traceback.print_exc()
654 654
655 item._unset_obj() 655 item._unset_obj()
@@ -665,7 +665,7 @@ cdef void _py_elm_genlist_item_func(void *data, Evas_Object *obj, void *event_in
665 try: 665 try:
666 o = object_from_instance(obj) 666 o = object_from_instance(obj)
667 item.cb_func(item, o, item.func_data) 667 item.cb_func(item, o, item.func_data)
668 except: 668 except Exception:
669 traceback.print_exc() 669 traceback.print_exc()
670 670
671cdef int _py_elm_genlist_compare_func(const void *data1, const void *data2) with gil: 671cdef int _py_elm_genlist_compare_func(const void *data1, const void *data2) with gil:
@@ -687,7 +687,7 @@ cdef int _py_elm_genlist_compare_func(const void *data1, const void *data2) with
687 if ret is not None: 687 if ret is not None:
688 try: 688 try:
689 return ret 689 return ret
690 except: 690 except Exception:
691 traceback.print_exc() 691 traceback.print_exc()
692 return 0 692 return 0
693 else: 693 else:
diff --git a/efl/elementary/gesture_layer.pyx b/efl/elementary/gesture_layer.pyx
index 9500eed..010b0ec 100644
--- a/efl/elementary/gesture_layer.pyx
+++ b/efl/elementary/gesture_layer.pyx
@@ -469,7 +469,7 @@ cdef Evas_Event_Flags _gesture_layer_taps_event_cb(void *data, void *event_info)
469 try: 469 try:
470 ret = callback(ei, *args, **kwargs) 470 ret = callback(ei, *args, **kwargs)
471 return <Evas_Event_Flags>ret if ret is not None else EVAS_EVENT_FLAG_NONE 471 return <Evas_Event_Flags>ret if ret is not None else EVAS_EVENT_FLAG_NONE
472 except Exception as e: 472 except Exception:
473 traceback.print_exc() 473 traceback.print_exc()
474 474
475cdef Evas_Event_Flags _gesture_layer_momentum_event_cb(void *data, void *event_info) with gil: 475cdef Evas_Event_Flags _gesture_layer_momentum_event_cb(void *data, void *event_info) with gil:
@@ -479,7 +479,7 @@ cdef Evas_Event_Flags _gesture_layer_momentum_event_cb(void *data, void *event_i
479 try: 479 try:
480 ret = callback(ei, *args, **kwargs) 480 ret = callback(ei, *args, **kwargs)
481 return <Evas_Event_Flags>ret if ret is not None else EVAS_EVENT_FLAG_NONE 481 return <Evas_Event_Flags>ret if ret is not None else EVAS_EVENT_FLAG_NONE
482 except Exception as e: 482 except Exception:
483 traceback.print_exc() 483 traceback.print_exc()
484 484
485cdef Evas_Event_Flags _gesture_layer_line_event_cb(void *data, void *event_info) with gil: 485cdef Evas_Event_Flags _gesture_layer_line_event_cb(void *data, void *event_info) with gil:
@@ -489,7 +489,7 @@ cdef Evas_Event_Flags _gesture_layer_line_event_cb(void *data, void *event_info)
489 try: 489 try:
490 ret = callback(ei, *args, **kwargs) 490 ret = callback(ei, *args, **kwargs)
491 return <Evas_Event_Flags>ret if ret is not None else EVAS_EVENT_FLAG_NONE 491 return <Evas_Event_Flags>ret if ret is not None else EVAS_EVENT_FLAG_NONE
492 except Exception as e: 492 except Exception:
493 traceback.print_exc() 493 traceback.print_exc()
494 494
495cdef Evas_Event_Flags _gesture_layer_zoom_event_cb(void *data, void *event_info) with gil: 495cdef Evas_Event_Flags _gesture_layer_zoom_event_cb(void *data, void *event_info) with gil:
@@ -499,7 +499,7 @@ cdef Evas_Event_Flags _gesture_layer_zoom_event_cb(void *data, void *event_info)
499 try: 499 try:
500 ret = callback(ei, *args, **kwargs) 500 ret = callback(ei, *args, **kwargs)
501 return <Evas_Event_Flags>ret if ret is not None else EVAS_EVENT_FLAG_NONE 501 return <Evas_Event_Flags>ret if ret is not None else EVAS_EVENT_FLAG_NONE
502 except Exception as e: 502 except Exception:
503 traceback.print_exc() 503 traceback.print_exc()
504 504
505cdef Evas_Event_Flags _gesture_layer_rotate_event_cb(void *data, void *event_info) with gil: 505cdef Evas_Event_Flags _gesture_layer_rotate_event_cb(void *data, void *event_info) with gil:
diff --git a/efl/elementary/index.pyx b/efl/elementary/index.pyx
index a0ddefc..799fd83 100644
--- a/efl/elementary/index.pyx
+++ b/efl/elementary/index.pyx
@@ -102,7 +102,7 @@ cdef int _index_compare_func(const void *data1, const void *data2) with gil:
102 if ret is not None: 102 if ret is not None:
103 try: 103 try:
104 return ret 104 return ret
105 except: 105 except Exception:
106 traceback.print_exc() 106 traceback.print_exc()
107 return 0 107 return 0
108 else: 108 else:
@@ -126,7 +126,7 @@ cdef int _index_data_compare_func(const void *data1, const void *data2) with gil
126 if ret is not None: 126 if ret is not None:
127 try: 127 try:
128 return ret 128 return ret
129 except: 129 except Exception:
130 traceback.print_exc() 130 traceback.print_exc()
131 return 0 131 return 0
132 else: 132 else:
diff --git a/efl/elementary/layout_class.pyx b/efl/elementary/layout_class.pyx
index d5e890d..7a2965f 100644
--- a/efl/elementary/layout_class.pyx
+++ b/efl/elementary/layout_class.pyx
@@ -32,7 +32,7 @@ cdef void layout_signal_callback(void *data, Evas_Object *obj,
32 for func, args, kargs in lst: 32 for func, args, kargs in lst:
33 try: 33 try:
34 func(self, _ctouni(emission), _ctouni(source), *args, **kargs) 34 func(self, _ctouni(emission), _ctouni(source), *args, **kargs)
35 except Exception, e: 35 except Exception:
36 traceback.print_exc() 36 traceback.print_exc()
37 37
38cdef class LayoutClass(Object): 38cdef class LayoutClass(Object):
diff --git a/efl/elementary/map.pyx b/efl/elementary/map.pyx
index c3f0ace..f5c82a9 100644
--- a/efl/elementary/map.pyx
+++ b/efl/elementary/map.pyx
@@ -269,7 +269,7 @@ cdef void _map_overlay_get_callback(void *data, Evas_Object *map, Elm_Map_Overla
269 try: 269 try:
270 (func, args, kwargs) = <object>data 270 (func, args, kwargs) = <object>data
271 func(obj, _elm_map_overlay_to_python(overlay), *args, **kwargs) 271 func(obj, _elm_map_overlay_to_python(overlay), *args, **kwargs)
272 except Exception, e: 272 except Exception:
273 traceback.print_exc() 273 traceback.print_exc()
274 274
275cdef void _map_overlay_del_cb(void *data, Evas_Object *map, Elm_Map_Overlay *overlay) with gil: 275cdef void _map_overlay_del_cb(void *data, Evas_Object *map, Elm_Map_Overlay *overlay) with gil:
@@ -283,7 +283,7 @@ cdef void _map_route_callback(void *data, Evas_Object *map, Elm_Map_Route *route
283 (proute, func, args, kwargs) = <object>data 283 (proute, func, args, kwargs) = <object>data
284 try: 284 try:
285 func(obj, proute, *args, **kwargs) 285 func(obj, proute, *args, **kwargs)
286 except Exception, e: 286 except Exception:
287 traceback.print_exc() 287 traceback.print_exc()
288 288
289 Py_DECREF(<object>data) 289 Py_DECREF(<object>data)
@@ -295,7 +295,7 @@ cdef void _map_name_callback(void *data, Evas_Object *map, Elm_Map_Name *name) w
295 (pname, func, args, kwargs) = <object>data 295 (pname, func, args, kwargs) = <object>data
296 try: 296 try:
297 func(obj, pname, *args, **kwargs) 297 func(obj, pname, *args, **kwargs)
298 except Exception, e: 298 except Exception:
299 traceback.print_exc() 299 traceback.print_exc()
300 300
301 Py_DECREF(<object>data) 301 Py_DECREF(<object>data)
diff --git a/efl/elementary/multibuttonentry.pyx b/efl/elementary/multibuttonentry.pyx
index 38729aa..537fa4a 100644
--- a/efl/elementary/multibuttonentry.pyx
+++ b/efl/elementary/multibuttonentry.pyx
@@ -86,7 +86,7 @@ cdef Eina_Bool _multibuttonentry_filter_callback(Evas_Object *obj, \
86 86
87 try: 87 try:
88 ret = callback(mbe, _ctouni(item_label), *a, **ka) 88 ret = callback(mbe, _ctouni(item_label), *a, **ka)
89 except: 89 except Exception:
90 traceback.print_exc() 90 traceback.print_exc()
91 91
92 return ret 92 return ret
@@ -97,7 +97,7 @@ cdef char * _multibuttonentry_format_cb(int count, void *data) with gil:
97 try: 97 try:
98 s = callback(count, *a, **ka) 98 s = callback(count, *a, **ka)
99 if isinstance(s, unicode): s = PyUnicode_AsUTF8String(s) 99 if isinstance(s, unicode): s = PyUnicode_AsUTF8String(s)
100 except: 100 except Exception:
101 traceback.print_exc() 101 traceback.print_exc()
102 return NULL 102 return NULL
103 103
diff --git a/efl/elementary/object.pyx b/efl/elementary/object.pyx
index 9dabe40..92b3090 100644
--- a/efl/elementary/object.pyx
+++ b/efl/elementary/object.pyx
@@ -293,7 +293,7 @@ cdef void _object_callback(void *data,
293 else: 293 else:
294 ei = event_conv(<uintptr_t>event_info) 294 ei = event_conv(<uintptr_t>event_info)
295 func(obj, ei, *args, **kargs) 295 func(obj, ei, *args, **kargs)
296 except: 296 except Exception:
297 traceback.print_exc() 297 traceback.print_exc()
298 298
299cdef bint _event_dispatcher(Object obj, Object src, Evas_Callback_Type t, 299cdef bint _event_dispatcher(Object obj, Object src, Evas_Callback_Type t,
@@ -303,7 +303,7 @@ cdef bint _event_dispatcher(Object obj, Object src, Evas_Callback_Type t,
303 for func, args, kargs in obj._elm_event_cbs: 303 for func, args, kargs in obj._elm_event_cbs:
304 try: 304 try:
305 ret = func(obj, src, t, event_info, *args, **kargs) 305 ret = func(obj, src, t, event_info, *args, **kargs)
306 except: 306 except Exception:
307 traceback.print_exc() 307 traceback.print_exc()
308 else: 308 else:
309 return ret 309 return ret
@@ -346,7 +346,7 @@ cdef void signal_callback(void *data, Evas_Object *obj,
346 for func, args, kargs in lst: 346 for func, args, kargs in lst:
347 try: 347 try:
348 func(self, _ctouni(emission), _ctouni(source), *args, **kargs) 348 func(self, _ctouni(emission), _ctouni(source), *args, **kargs)
349 except: 349 except Exception:
350 traceback.print_exc() 350 traceback.print_exc()
351 351
352 352
diff --git a/efl/elementary/object_item.pyx b/efl/elementary/object_item.pyx
index a6f63ec..1185a5e 100644
--- a/efl/elementary/object_item.pyx
+++ b/efl/elementary/object_item.pyx
@@ -85,7 +85,7 @@ cdef void _object_item_callback(void *data, Evas_Object *obj, void *event_info)
85 try: 85 try:
86 o = object_from_instance(obj) 86 o = object_from_instance(obj)
87 item.cb_func(o, item, *item.args, **item.kwargs) 87 item.cb_func(o, item, *item.args, **item.kwargs)
88 except: 88 except Exception:
89 traceback.print_exc() 89 traceback.print_exc()
90 90
91cdef void _object_item_callback2(void *data, Evas_Object *obj, void *event_info) with gil: 91cdef void _object_item_callback2(void *data, Evas_Object *obj, void *event_info) with gil:
@@ -94,7 +94,7 @@ cdef void _object_item_callback2(void *data, Evas_Object *obj, void *event_info)
94 try: 94 try:
95 o = object_from_instance(obj) 95 o = object_from_instance(obj)
96 item.cb_func(o, item, item.cb_data) 96 item.cb_func(o, item, item.cb_data)
97 except: 97 except Exception:
98 traceback.print_exc() 98 traceback.print_exc()
99 99
100cdef class ObjectItem(object): 100cdef class ObjectItem(object):
diff --git a/efl/elementary/slideshow.pyx b/efl/elementary/slideshow.pyx
index 1a71e77..2486928 100644
--- a/efl/elementary/slideshow.pyx
+++ b/efl/elementary/slideshow.pyx
@@ -108,7 +108,7 @@ cdef Evas_Object *_py_elm_slideshow_item_get(void *data, Evas_Object *obj) with
108 try: 108 try:
109 o = object_from_instance(obj) 109 o = object_from_instance(obj)
110 ret = func(o, *item.args, **item.kwargs) 110 ret = func(o, *item.args, **item.kwargs)
111 except: 111 except Exception:
112 traceback.print_exc() 112 traceback.print_exc()
113 return NULL 113 return NULL
114 114
@@ -127,7 +127,7 @@ cdef void _py_elm_slideshow_item_del(void *data, Evas_Object *obj) with gil:
127 try: 127 try:
128 o = object_from_instance(obj) 128 o = object_from_instance(obj)
129 func(o, *item.args, **item.kwargs) 129 func(o, *item.args, **item.kwargs)
130 except: 130 except Exception:
131 traceback.print_exc() 131 traceback.print_exc()
132 132
133 # XXX: SlideShow item handling is weird 133 # XXX: SlideShow item handling is weird
@@ -146,7 +146,7 @@ cdef int _py_elm_slideshow_compare_func(const void *data1, const void *data2) wi
146 if ret is not None: 146 if ret is not None:
147 try: 147 try:
148 return ret 148 return ret
149 except: 149 except Exception:
150 traceback.print_exc() 150 traceback.print_exc()
151 return 0 151 return 0
152 else: 152 else:
diff --git a/efl/elementary/store.pyx b/efl/elementary/store.pyx
index 4e2883f..b3d9757 100644
--- a/efl/elementary/store.pyx
+++ b/efl/elementary/store.pyx
@@ -120,7 +120,7 @@ cdef Eina_Bool store_fs_item_list_cb(void *data, Elm_Store_Item_Info *info) with
120 func, args, kwargs = <object>data 120 func, args, kwargs = <object>data
121 try: 121 try:
122 ret = func(ifs, args, kwargs) 122 ret = func(ifs, args, kwargs)
123 except Exception, e: 123 except Exception:
124 traceback.print_exc() 124 traceback.print_exc()
125 125
126 ifs.info_fs = NULL 126 ifs.info_fs = NULL
@@ -137,7 +137,7 @@ cdef void store_item_fetch_cb(void *data, Elm_Store_Item *sti) with gil:
137 func, args, kwargs = <object>data 137 func, args, kwargs = <object>data
138 try: 138 try:
139 func(it, args, kwargs) 139 func(it, args, kwargs)
140 except Exception, e: 140 except Exception:
141 traceback.print_exc() 141 traceback.print_exc()
142 142
143 it.sti = NULL 143 it.sti = NULL
@@ -149,7 +149,7 @@ cdef void store_item_unfetch_cb(void *data, Elm_Store_Item *sti) with gil:
149 func, args, kwargs = <object>data 149 func, args, kwargs = <object>data
150 try: 150 try:
151 func(it, args, kwargs) 151 func(it, args, kwargs)
152 except Exception, e: 152 except Exception:
153 traceback.print_exc() 153 traceback.print_exc()
154 154
155 it.sti = NULL 155 it.sti = NULL
diff --git a/efl/elementary/toolbar.pyx b/efl/elementary/toolbar.pyx
index 2e0d3a3..6c59b15 100644
--- a/efl/elementary/toolbar.pyx
+++ b/efl/elementary/toolbar.pyx
@@ -214,7 +214,7 @@ cdef void _toolbar_item_state_callback(void *data, Evas_Object *obj, void *event
214 try: 214 try:
215 o = object_from_instance(obj) 215 o = object_from_instance(obj)
216 callback(o, item, *a, **ka) 216 callback(o, item, *a, **ka)
217 except Exception as e: 217 except Exception:
218 traceback.print_exc() 218 traceback.print_exc()
219 219
220 # The C item will be freed unless this is done 220 # The C item will be freed unless this is done
diff --git a/efl/elementary/transit.pyx b/efl/elementary/transit.pyx
index d4b2f7c..034fd23 100644
--- a/efl/elementary/transit.pyx
+++ b/efl/elementary/transit.pyx
@@ -206,7 +206,7 @@ cdef void elm_transit_effect_transition_cb(Elm_Transit_Effect *effect, Elm_Trans
206 206
207 try: 207 try:
208 fect.transition_cb(tsit, progress) 208 fect.transition_cb(tsit, progress)
209 except: 209 except Exception:
210 traceback.print_exc() 210 traceback.print_exc()
211 211
212cdef void elm_transit_effect_end_cb(Elm_Transit_Effect *effect, Elm_Transit *transit) with gil: 212cdef void elm_transit_effect_end_cb(Elm_Transit_Effect *effect, Elm_Transit *transit) with gil:
@@ -216,7 +216,7 @@ cdef void elm_transit_effect_end_cb(Elm_Transit_Effect *effect, Elm_Transit *tra
216 216
217 try: 217 try:
218 fect.end_cb(tsit) 218 fect.end_cb(tsit)
219 except: 219 except Exception:
220 traceback.print_exc() 220 traceback.print_exc()
221 221
222 Py_DECREF(fect) 222 Py_DECREF(fect)
@@ -235,7 +235,7 @@ cdef void elm_transit_del_cb(void *data, Elm_Transit *transit) with gil:
235 235
236 try: 236 try:
237 trans.del_cb(trans, *args, **kwargs) 237 trans.del_cb(trans, *args, **kwargs)
238 except: 238 except Exception:
239 traceback.print_exc() 239 traceback.print_exc()
240 240
241 trans.obj = NULL 241 trans.obj = NULL
diff --git a/efl/elementary/web.pyx b/efl/elementary/web.pyx
index e136732..c33b677 100644
--- a/efl/elementary/web.pyx
+++ b/efl/elementary/web.pyx
@@ -213,7 +213,7 @@ cdef void _web_console_message_hook(void *data, Evas_Object *obj, const char *me
213 213
214 try: 214 try:
215 self._console_message_hook(self, _ctouni(message), line_number, _ctouni(source_id)) 215 self._console_message_hook(self, _ctouni(message), line_number, _ctouni(source_id))
216 except Exception, e: 216 except Exception:
217 traceback.print_exc() 217 traceback.print_exc()
218 218
219cdef class WebWindowFeatures(object): 219cdef class WebWindowFeatures(object):
diff --git a/efl/emotion/efl.emotion.pyx b/efl/emotion/efl.emotion.pyx
index 6206da0..b7e3fbe 100644
--- a/efl/emotion/efl.emotion.pyx
+++ b/efl/emotion/efl.emotion.pyx
@@ -115,7 +115,7 @@ cdef void _emotion_callback(void *data, Evas_Object *o, void *ei) with gil:
115 for func, args, kargs in lst: 115 for func, args, kargs in lst:
116 try: 116 try:
117 func(obj, *args, **kargs) 117 func(obj, *args, **kargs)
118 except Exception, e: 118 except Exception:
119 import traceback 119 import traceback
120 traceback.print_exc() 120 traceback.print_exc()
121 121
@@ -1136,7 +1136,7 @@ cdef class Emotion(evasObject):
1136 """ 1136 """
1137 try: 1137 try:
1138 lst = self._emotion_callbacks[event] 1138 lst = self._emotion_callbacks[event]
1139 except KeyError, e: 1139 except KeyError:
1140 raise ValueError("function %s not associated with event %r" % 1140 raise ValueError("function %s not associated with event %r" %
1141 (func, event)) 1141 (func, event))
1142 1142
diff --git a/efl/ethumb/efl.ethumb_client.pyx b/efl/ethumb/efl.ethumb_client.pyx
index 8c4939f..4a0ef8e 100644
--- a/efl/ethumb/efl.ethumb_client.pyx
+++ b/efl/ethumb/efl.ethumb_client.pyx
@@ -31,7 +31,7 @@ cdef void _connect_cb(void *data, Ethumb_Client *client, Eina_Bool success) with
31 try: 31 try:
32 func, args, kargs = self._on_connect_callback 32 func, args, kargs = self._on_connect_callback
33 func(self, s, *args, **kargs) 33 func(self, s, *args, **kargs)
34 except Exception, e: 34 except Exception:
35 traceback.print_exc() 35 traceback.print_exc()
36 36
37 if not s and self.obj != NULL: 37 if not s and self.obj != NULL:
@@ -46,7 +46,7 @@ cdef void _on_server_die_cb(void *data, Ethumb_Client *client) with gil:
46 try: 46 try:
47 func, args, kargs = self._on_server_die_callback 47 func, args, kargs = self._on_server_die_callback
48 func(self, *args, **kargs) 48 func(self, *args, **kargs)
49 except Exception, e: 49 except Exception:
50 traceback.print_exc() 50 traceback.print_exc()
51 51
52 if self.obj != NULL: 52 if self.obj != NULL:
@@ -65,7 +65,7 @@ cdef void _generated_cb(void *data, Ethumb_Client *client, int id, const char *f
65 s = bool(success != 0) 65 s = bool(success != 0)
66 try: 66 try:
67 func(self, id, f, k, tp, tk, s, *args, **kargs) 67 func(self, id, f, k, tp, tk, s, *args, **kargs)
68 except Exception, e: 68 except Exception:
69 traceback.print_exc() 69 traceback.print_exc()
70 70
71cdef void _generated_cb_free_data(void *data) with gil: 71cdef void _generated_cb_free_data(void *data) with gil:
diff --git a/efl/evas/efl.evas_canvas_callbacks.pxi b/efl/evas/efl.evas_canvas_callbacks.pxi
index f6721ca..4c79653 100644
--- a/efl/evas/efl.evas_canvas_callbacks.pxi
+++ b/efl/evas/efl.evas_canvas_callbacks.pxi
@@ -23,7 +23,7 @@ cdef int cb_canvas_dispatcher(Canvas self, event, int type) except 0:
23 for func, args, kargs in lst: 23 for func, args, kargs in lst:
24 try: 24 try:
25 func(self, event, *args, **kargs) 25 func(self, event, *args, **kargs)
26 except Exception, e: 26 except Exception:
27 traceback.print_exc() 27 traceback.print_exc()
28 return 1 28 return 1
29 29
@@ -34,7 +34,7 @@ cdef int cb_canvas_dispatcher2(Canvas self, int type) except 0:
34 for func, args, kargs in lst: 34 for func, args, kargs in lst:
35 try: 35 try:
36 func(self, *args, **kargs) 36 func(self, *args, **kargs)
37 except Exception, e: 37 except Exception:
38 traceback.print_exc() 38 traceback.print_exc()
39 return 1 39 return 1
40 40
diff --git a/efl/evas/efl.evas_object.pxi b/efl/evas/efl.evas_object.pxi
index de8cae7..cad20a8 100644
--- a/efl/evas/efl.evas_object.pxi
+++ b/efl/evas/efl.evas_object.pxi
@@ -49,7 +49,7 @@ cdef void obj_free_cb(void *data, Evas *e,
49 for func, args, kargs in lst: 49 for func, args, kargs in lst:
50 try: 50 try:
51 func(self, *args, **kargs) 51 func(self, *args, **kargs)
52 except: 52 except Exception:
53 traceback.print_exc() 53 traceback.print_exc()
54 54
55 _object_unregister_callbacks(self) 55 _object_unregister_callbacks(self)
diff --git a/efl/evas/efl.evas_object_callbacks.pxi b/efl/evas/efl.evas_object_callbacks.pxi
index 8b18c31..dedacec 100644
--- a/efl/evas/efl.evas_object_callbacks.pxi
+++ b/efl/evas/efl.evas_object_callbacks.pxi
@@ -22,7 +22,7 @@ cdef int cb_object_dispatcher(Object self, event, int type) except 0:
22 for func, args, kargs in lst: 22 for func, args, kargs in lst:
23 try: 23 try:
24 func(self, event, *args, **kargs) 24 func(self, event, *args, **kargs)
25 except Exception, e: 25 except Exception:
26 traceback.print_exc() 26 traceback.print_exc()
27 return 1 27 return 1
28 28
@@ -33,7 +33,7 @@ cdef int cb_object_dispatcher2(Object self, int type) except 0:
33 for func, args, kargs in lst: 33 for func, args, kargs in lst:
34 try: 34 try:
35 func(self, *args, **kargs) 35 func(self, *args, **kargs)
36 except Exception, e: 36 except Exception:
37 traceback.print_exc() 37 traceback.print_exc()
38 return 1 38 return 1
39 39
diff --git a/efl/evas/efl.evas_object_smart.pxi b/efl/evas/efl.evas_object_smart.pxi
index 34bd06e..0bd5f49 100644
--- a/efl/evas/efl.evas_object_smart.pxi
+++ b/efl/evas/efl.evas_object_smart.pxi
@@ -35,63 +35,63 @@ cdef void _smart_object_delete(Evas_Object *o) with gil:
35 35
36 try: 36 try:
37 obj._m_delete(obj) 37 obj._m_delete(obj)
38 except Exception, e: 38 except Exception:
39 traceback.print_exc() 39 traceback.print_exc()
40 40
41 if type(obj.delete) is types.MethodType: 41 if type(obj.delete) is types.MethodType:
42 try: 42 try:
43 del obj.delete 43 del obj.delete
44 except AttributeError, e: 44 except AttributeError:
45 pass 45 pass
46 if type(obj.move) is types.MethodType: 46 if type(obj.move) is types.MethodType:
47 try: 47 try:
48 del obj.move 48 del obj.move
49 except AttributeError, e: 49 except AttributeError:
50 pass 50 pass
51 if type(obj.resize) is types.MethodType: 51 if type(obj.resize) is types.MethodType:
52 try: 52 try:
53 del obj.resize 53 del obj.resize
54 except AttributeError, e: 54 except AttributeError:
55 pass 55 pass
56 if type(obj.show) is types.MethodType: 56 if type(obj.show) is types.MethodType:
57 try: 57 try:
58 del obj.show 58 del obj.show
59 except AttributeError, e: 59 except AttributeError:
60 pass 60 pass
61 if type(obj.hide) is types.MethodType: 61 if type(obj.hide) is types.MethodType:
62 try: 62 try:
63 del obj.hide 63 del obj.hide
64 except AttributeError, e: 64 except AttributeError:
65 pass 65 pass
66 if type(obj.color_set) is types.MethodType: 66 if type(obj.color_set) is types.MethodType:
67 try: 67 try:
68 del obj.color_set 68 del obj.color_set
69 except AttributeError, e: 69 except AttributeError:
70 pass 70 pass
71 if type(obj.clip_set) is types.MethodType: 71 if type(obj.clip_set) is types.MethodType:
72 try: 72 try:
73 del obj.clip_set 73 del obj.clip_set
74 except AttributeError, e: 74 except AttributeError:
75 pass 75 pass
76 if type(obj.clip_unset) is types.MethodType: 76 if type(obj.clip_unset) is types.MethodType:
77 try: 77 try:
78 del obj.clip_unset 78 del obj.clip_unset
79 except AttributeError, e: 79 except AttributeError:
80 pass 80 pass
81 if type(obj.calculate) is types.MethodType: 81 if type(obj.calculate) is types.MethodType:
82 try: 82 try:
83 del obj.calculate 83 del obj.calculate
84 except AttributeError, e: 84 except AttributeError:
85 pass 85 pass
86 if type(obj.member_add) is types.MethodType: 86 if type(obj.member_add) is types.MethodType:
87 try: 87 try:
88 del obj.member_add 88 del obj.member_add
89 except AttributeError, e: 89 except AttributeError:
90 pass 90 pass
91 if type(obj.member_del) is types.MethodType: 91 if type(obj.member_del) is types.MethodType:
92 try: 92 try:
93 del obj.member_del 93 del obj.member_del
94 except AttributeError, e: 94 except AttributeError:
95 pass 95 pass
96 96
97 obj._smart_callbacks = None 97 obj._smart_callbacks = None
@@ -115,7 +115,7 @@ cdef void _smart_object_move(Evas_Object *o,
115 if obj._m_move is not None: 115 if obj._m_move is not None:
116 try: 116 try:
117 obj._m_move(obj, x, y) 117 obj._m_move(obj, x, y)
118 except Exception, e: 118 except Exception:
119 traceback.print_exc() 119 traceback.print_exc()
120 120
121 121
@@ -126,7 +126,7 @@ cdef void _smart_object_resize(Evas_Object *o,
126 if obj._m_resize is not None: 126 if obj._m_resize is not None:
127 try: 127 try:
128 obj._m_resize(obj, w, h) 128 obj._m_resize(obj, w, h)
129 except Exception, e: 129 except Exception:
130 traceback.print_exc() 130 traceback.print_exc()
131 131
132 132
@@ -136,7 +136,7 @@ cdef void _smart_object_show(Evas_Object *o) with gil:
136 if obj._m_show is not None: 136 if obj._m_show is not None:
137 try: 137 try:
138 obj._m_show(obj) 138 obj._m_show(obj)
139 except Exception, e: 139 except Exception:
140 traceback.print_exc() 140 traceback.print_exc()
141 141
142 142
@@ -146,7 +146,7 @@ cdef void _smart_object_hide(Evas_Object *o) with gil:
146 if obj._m_hide is not None: 146 if obj._m_hide is not None:
147 try: 147 try:
148 obj._m_hide(obj) 148 obj._m_hide(obj)
149 except Exception, e: 149 except Exception:
150 traceback.print_exc() 150 traceback.print_exc()
151 151
152 152
@@ -157,7 +157,7 @@ cdef void _smart_object_color_set(Evas_Object *o,
157 if obj._m_color_set is not None: 157 if obj._m_color_set is not None:
158 try: 158 try:
159 obj._m_color_set(obj, r, g, b, a) 159 obj._m_color_set(obj, r, g, b, a)
160 except Exception, e: 160 except Exception:
161 traceback.print_exc() 161 traceback.print_exc()
162 162
163 163
@@ -169,7 +169,7 @@ cdef void _smart_object_clip_set(Evas_Object *o, Evas_Object *clip) with gil:
169 if obj._m_clip_set is not None: 169 if obj._m_clip_set is not None:
170 try: 170 try:
171 obj._m_clip_set(obj, other) 171 obj._m_clip_set(obj, other)
172 except Exception, e: 172 except Exception:
173 traceback.print_exc() 173 traceback.print_exc()
174 174
175 175
@@ -179,7 +179,7 @@ cdef void _smart_object_clip_unset(Evas_Object *o) with gil:
179 if obj._m_clip_unset is not None: 179 if obj._m_clip_unset is not None:
180 try: 180 try:
181 obj._m_clip_unset(obj) 181 obj._m_clip_unset(obj)
182 except Exception, e: 182 except Exception:
183 traceback.print_exc() 183 traceback.print_exc()
184 184
185 185
@@ -189,7 +189,7 @@ cdef void _smart_object_calculate(Evas_Object *o) with gil:
189 if obj._m_calculate is not None: 189 if obj._m_calculate is not None:
190 try: 190 try:
191 obj._m_calculate(obj) 191 obj._m_calculate(obj)
192 except Exception, e: 192 except Exception:
193 traceback.print_exc() 193 traceback.print_exc()
194 194
195 195
@@ -201,7 +201,7 @@ cdef void _smart_object_member_add(Evas_Object *o, Evas_Object *clip) with gil:
201 if obj._m_member_add is not None: 201 if obj._m_member_add is not None:
202 try: 202 try:
203 obj._m_member_add(obj, other) 203 obj._m_member_add(obj, other)
204 except Exception, e: 204 except Exception:
205 traceback.print_exc() 205 traceback.print_exc()
206 206
207 207
@@ -213,7 +213,7 @@ cdef void _smart_object_member_del(Evas_Object *o, Evas_Object *clip) with gil:
213 if obj._m_member_del is not None: 213 if obj._m_member_del is not None:
214 try: 214 try:
215 obj._m_member_del(obj, other) 215 obj._m_member_del(obj, other)
216 except Exception, e: 216 except Exception:
217 traceback.print_exc() 217 traceback.print_exc()
218 218
219 219
@@ -228,7 +228,7 @@ cdef void _smart_callback(void *data,
228 for func, args, kargs in lst: 228 for func, args, kargs in lst:
229 try: 229 try:
230 func(obj, ei, *args, **kargs) 230 func(obj, ei, *args, **kargs)
231 except Exception, e: 231 except Exception:
232 traceback.print_exc() 232 traceback.print_exc()
233 233
234 234
@@ -493,7 +493,7 @@ cdef class SmartObject(Object):
493 """ 493 """
494 try: 494 try:
495 lst = self._smart_callbacks[event] 495 lst = self._smart_callbacks[event]
496 except KeyError, e: 496 except KeyError:
497 raise ValueError("Unknown event %r" % event) 497 raise ValueError("Unknown event %r" % event)
498 498
499 i = -1 499 i = -1