-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pybricks.common.System.storage: use buffer protocol
This updates the storage method to allow any object with the buffer protocol instead of just bytes. Also change the missing arg error to a TypeError while we are touching this. Issue: #121
- Loading branch information
Showing
1 changed file
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is not entirely the same. The reason for doing this check the other way originally, is to require that at least one argument remains none. So that passing both read and write would raise an error. It seems like this change would make it pass.