SetActiveLink fails without "order" parameter (e.g. rename active link)
Brought to you by:
ergorion
I think line 3309/3310 in ars.py has a logical error:
if not isinstance(order, c_uint) or order is not None:
order = c_uint(order)
should read
if isinstance(order, c_uint) or order is not None:
order = c_uint(order)
Anonymous
Why do you think that this is an error? Only if order is not of type c_uint, I would like to enforce it to be of that type. Therefore, it's
if not isinstance()
But then the "or" is wrong. It needs to be:
if order is not None and not isinstance(order, c_uint):
order = c_uint(order)
I'll fix it...
This bug should be fixed with pyARS 1.8.2.
Last edit: Ergorion 2015-03-08