Issue #025 [Fixed/closed] - Some potential errors from PyDev code checker

Posted by andreas.riegg

Hi Eric,

when developing my driver for TSL2561 I imported the curent trunk (r885) into PyDev within Eclipse. When looking at the files the error checker found some potential errors which I want to give you to check before releasing 0.5.4.

coap.py Line 45:

bus.py Line 79:

rest.py Line 311:

utils.py Line 192:

Best regards

Andreas


Comment 1

Posted by trouch

Thanks for this feedback.

coap.py: Not, this is not a error, this is some kind of "static" method which not need instance.

bus.py: oops, yes, this is right.

rest.py: right too.

utils.py: e is supposed to be filled with the exception, it's not used here. actually, exception handling is little different in python 2 and 3 for passing exception. if think this is correct in python 2. i will correct this by removing e, as it's not used.

thanks


Comment 2

Posted by trouch

This issue was closed by revision r886.


Comment 3

Posted by trouch

Issue 26 has been merged into this issue.