Skip to content

Fix broken self.matched interface #430

@fornellas

Description

@fornellas

As documented upstream, the interface of self.matched for a decoder must return a tuple of booleans. It is currently returning an integer.

While some protocol decoders make use of it this way, various others don't, so they blow up with TypeError: 'int' object is not subscriptable.

This is also true for all upstream decoders, which can't work here, unless they are patched (eg: #429)

PS: perhaps the solution is to make use of the upstream lib #428

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions