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,16 +52,12 @@ cdef class EventDispatcher(object):
|
|||
attrs_found = cp[__cls__] = {}
|
||||
attrs = dir(__cls__)
|
||||
for k in attrs:
|
||||
try:
|
||||
uattr = getattr(__cls__, k)
|
||||
except AttributeError:
|
||||
pass
|
||||
else:
|
||||
if not isinstance(uattr, Property):
|
||||
continue
|
||||
if k == 'touch_down' or k == 'touch_move' or k == 'touch_up':
|
||||
raise Exception('The property <%s> have a forbidden name' % k)
|
||||
attrs_found[k] = uattr
|
||||
uattr = getattr(__cls__, k)
|
||||
if not isinstance(uattr, Property):
|
||||
continue
|
||||
if k == 'touch_down' or k == 'touch_move' or k == 'touch_up':
|
||||
raise Exception('The property <%s> have a forbidden name' % k)
|
||||
attrs_found[k] = uattr
|
||||
else:
|
||||
attrs_found = cp[__cls__]
|
||||
|
||||
|
|
Loading…
Reference in New Issue