GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — bpo-30987 - Support for ISO-TP protocol in SocketCAN by pylessard · Pull Request #2956 · python/cpython Conversation
|
|
Hello, and thanks for your contribution! I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA). Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue. Thanks again to your contribution and we look forward to looking at it! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
After second thoughts, only the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Pull request is re-open. All dependencies over the third party project have been removed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution. Your patch looks mostly fine, good work! I added notes for some style nit picks and a missing ifdef check.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| PyModule_AddIntMacro(m, CAN_EFF_MASK); | ||
| PyModule_AddIntMacro(m, CAN_ERR_MASK); | ||
|
|
||
| PyModule_AddIntMacro(m, CAN_ISOTP); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This needs a #ifdef CAN_ISOTP.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| } | ||
| #endif | ||
|
|
||
| #if defined(CAN_ISOTP) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
#ifdef CAN_ISOTP
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| #endif | ||
|
|
||
| #if defined(AF_CAN) && defined(CAN_RAW) && defined(CAN_BCM) | ||
| #if defined(AF_CAN) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please use ifdef for simple checks: #ifdef AF_CAN
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| def testBind(self): | ||
| try: | ||
| with socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_ISOTP) as s: | ||
| addr = (self.interface,0x123,0x456) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Style nit pick: addr = self.interface, 0x123, 0x456
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| # most systems limit IFNAMSIZ to 16, take 1024 to be sure | ||
| with socket.socket(socket.PF_CAN, socket.SOCK_DGRAM, socket.CAN_ISOTP) as s: | ||
| self.assertRaisesRegex(OSError, 'interface name too long', | ||
| s.bind, ('x' * 1024,1,2)) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Please use
with self.assertRaisesRegex(OSError, 'interface name too long'):
s.bind(('x' * 1024, 1, 2))
to make it more readable.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I didn't expect the Spanish Inquisition! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Nobody expects the Spanish Inquisition! @tiran: please review the changes made to this pull request. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Your PR is still missing a space after comma in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@tiran Changes done sir! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
perfect! 🥇
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* Added support for CAN_ISOTP protocol * Added unit tests for CAN ISOTP * Updated documentation for ISO-TP protocol * Removed trailing whitespace in documentation * Added blurb NEWS.d file * updated Misc/ACKS * Fixed broken unit test that was using isotp const outside of skippable section * Removed dependecy over third party project * Added implementation for getsockname + unit tests * Missing newline at end of ACKS file * Accidentally inserted a type in ACKS file * Followed tiran changes review #1 recommendations * Added spaces after comma
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.