You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should create a pull request, tested with both Python 2 and 3.
open() in Python 2 does not take the encoding argument. open() in the io-module takes the extra argument, but it reads unicode instead of str, which may be what we want, but in the cantools package I ended up opening the file differently in Python 2 and 3. See: https://github.com/eerimoq/cantools/blob/master/cantools/db/__init__.py#L65-L70
eg:
The text was updated successfully, but these errors were encountered: