commit | a76c4216320b9e13c9bb1ca294eb41e9ce41c71a | [log] [tgz] |
---|---|---|
author | Miles Frain <miles.frain@gmail.com> | Tue Jan 17 21:03:46 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 17 21:03:46 2023 +0000 |
tree | fb0947ad7897876f8f41d2a3eaadb9286debf27d | |
parent | 22372451c54466446a6f8f347c191942af33f320 [diff] |
pw_tokenizer: Fix _DatabasePath.__init__() _DatabasePath.__init__() would previously fail to extract the domain if passed a Path() object instead of a str. This issue was originally discovered when attempting to add the #metrics domain for loading tokenized metrics. This commit updates test_token_domains() to expose this bug, and applies the necessary fix. _DatabasePath.__init__() now handles all possible _PathOrFile arguments correctly. Additional clean-up suggested in: Bug: b/265334753 Change-Id: Ibced5abe15be4f9d4755e94dec5fe260ea6bbd87 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126462 Commit-Queue: Wyatt Hepler <hepler@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.