-
Notifications
You must be signed in to change notification settings - Fork 94
Closed
Description
Perhaps it is my pc but I got the following SyntaxError:
File "...\lib\site-packages\digi\xbee\models\mode.py", line 230 return sum(op.code for op in options if lambda option: option != cls.EXPLICIT) ^ SyntaxError: invalid syntax
I fixed it by adding parentheses around the if statement:
return sum(op.code for op in options if (lambda option: option != cls.EXPLICIT))