mirror of https://github.com/kivy/kivy.git
Revert "wrap try/except around getattr to prevent errors on some descriptors"
This reverts commit 330f15b8cb
.
This commit is contained in:
parent
ff9bb377e0
commit
9f1c93a421
|
@ -52,11 +52,7 @@ cdef class EventDispatcher(object):
|
||||||
attrs_found = cp[__cls__] = {}
|
attrs_found = cp[__cls__] = {}
|
||||||
attrs = dir(__cls__)
|
attrs = dir(__cls__)
|
||||||
for k in attrs:
|
for k in attrs:
|
||||||
try:
|
|
||||||
uattr = getattr(__cls__, k)
|
uattr = getattr(__cls__, k)
|
||||||
except AttributeError:
|
|
||||||
pass
|
|
||||||
else:
|
|
||||||
if not isinstance(uattr, Property):
|
if not isinstance(uattr, Property):
|
||||||
continue
|
continue
|
||||||
if k == 'touch_down' or k == 'touch_move' or k == 'touch_up':
|
if k == 'touch_down' or k == 'touch_move' or k == 'touch_up':
|
||||||
|
|
Loading…
Reference in New Issue