You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until python 3.11 IntEnum.srt() returned "<Enum name>.<member name>"
But since then it returns the string of its numeric value instead.
This causes errors like:
File "edtt/src/components/attdata.py", line 374, in __str__
result = self.__opcodeName( opcode );
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "edtt/src/components/attdata.py", line 349, in __opcodeName
result = result.split('.')[1];
~~~~~~~~~~~~~~~~~^^^
Let's pick the "name" instead which is directly the Enum member name.
This works both with newer and older python versions since enum was
added in version 3.4.
Signed-off-by: Alberto Escolar Piedras <[email protected]>
0 commit comments