Skip to content

Cleanup Parser #17

@tomato42

Description

@tomato42

tlslite.utils.codec.Parser uses the SyntaxError exception in case the received data can't be parsed as requested.

This is problematic, as the same exception is raised by the runtime environment when there are syntax errors in running code. So a typo in low level code is easy to miss and hard to debug.

Make the Parser raise a TLSLite specific exception in cases like this.

The methods in Parser should also be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuerelatively simple changes, good for first time contributorshelp wanted

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions