-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_system: Style fixes to Python scripts
- Move time_offset from Device to DeviceWithTracing. - Include modules not classes. While PEP8 allows including classes, it is easier to know where a class or free function comes from when reading the code -- this is also what the Google style suggest, which we don't follow but PEP8 allows it. - Fix multiline and single line strings. - Pass kwargs as kwargs in DeviceWithTracing. - Use only one type of quotes (single). Test: Ran pw_system demo on host and pw console Change-Id: I06d897283a3536e63b6ceee1485cef5b06e1c6a5 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/182661 Reviewed-by: Ted Pudlik <tpudlik@google.com> Reviewed-by: Dave Roth <davidroth@google.com> Commit-Queue: Carlos Chinchilla <cachinchilla@google.com>
- Loading branch information
1 parent
d116917
commit cf32519
Showing
4 changed files
with
107 additions
and
93 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 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 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
Oops, something went wrong.