Skip to content

Multiple suspected bugs reported by pylint #7

@blackbit42

Description

@blackbit42

pylint is reporting a number issues that more likely than not lead to unhandled exceptions and therefore application aborts if the respective code paths are being hit. I suspect those code paths are for atypical executions, therefore the associated issues have not been spotted so far.

$ pylint pypassport/ | grep "E[[:digit:]]"
pypassport/geojasper.py:32:8: E1120: No value for argument 'name' in unbound method call (no-value-for-parameter)
pypassport/tlvparser.py:56:37: E1136: Value 'exc' is unsubscriptable (unsubscriptable-object)
pypassport/hexfunctions.py:102:11: E1101: Instance of 'list' has no 'upper' member (no-member)
pypassport/doc9303/datagroup.py:67:22: E0602: Undefined variable 'stop' (undefined-variable)
pypassport/doc9303/datagroup.py:460:22: E1101: Instance of 'DataGroup16' has no '_parseTemplate' member (no-member)
pypassport/genpassport/datagroupcreation.py:46:8: E1101: Super of 'DataGroupFileCreation' has no 'setHeader' member (no-member)
pypassport/genpassport/datagroupcreation.py:53:8: E1120: No value for argument 'name' in unbound method call (no-value-for-parameter)
pypassport/genpassport/jcop.py:40:12: E1101: Instance of 'GPlatform' has no 'log' member (no-member)
$

I am happy to open individual github issues for those problems in case that makes things easier.

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