-
Notifications
You must be signed in to change notification settings - Fork 638
Fix warning in usb2can #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This PR removes [this `DeprecationWarning`](https://travis-ci.org/hardbyte/python-can/jobs/529939236#L473): > invalid escape sequence \c Is this correct to to? It now is like [this example](https://docs.microsoft.com/en-us/windows/desktop/wmisdk/swbemlocator-connectserver#examples).
Codecov Report
@@ Coverage Diff @@
## develop #570 +/- ##
========================================
Coverage 63.99% 63.99%
========================================
Files 63 63
Lines 5572 5572
========================================
Hits 3566 3566
Misses 2006 2006 |
I haven't had a chance to test this yet. If all goes well I will check back next week. |
@acolomb Did it work? |
Sorry I didn't get a chance to test it yet. Way too much work just before a longer vacation... Will report when tested, but that might be a couple of weeks now. |
I am pretty sure this is a correct fix. I'll merge this for now. Please report back if it breaks something. |
So I tested this now with a real USB2CAN hardware device. Successfully opened the backend without specifying a serial number prefix, therefore the adapter was correctly autodetect even with this change. Works as expected, sorry for the long delay. |
This PR removes this
DeprecationWarning
:Is this correct to do? It now is like this example.
Closes #576.