Skip to content

Fix broken self.matched interface #430

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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