Skip to content

SyntaxError in mode.py  #212

@jpaijens

Description

@jpaijens

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))

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions