summaryrefslogtreecommitdiff
path: root/efl/emotion
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/emotion
parent5fcc33b17a69b8a7ad57022e01d37404fdd97254 (diff)
Code cleanup: Remove unused exception instances
This also gets rid of the old style syntax.
Diffstat (limited to 'efl/emotion')
-rw-r--r--efl/emotion/efl.emotion.pyx4
1 files changed, 2 insertions, 2 deletions
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