commit | 25719964a8ee6bb56b86c0da1fad1e86e73da2a7 | [log] [tgz] |
---|---|---|
author | Rob Mohr <mohrr@google.com> | Tue Jan 17 20:11:19 2023 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 17 20:11:19 2023 +0000 |
tree | d14bdffb946e16b96165ce526174c94a48cc8250 | |
parent | d5f87c8080f72c2f7fe882c62e039f0b8227a8cd [diff] |
pw_presubmit: Use AbstractContextManager Compare objects against contextlib.AbstractContextManager instead of checking for methods like '__enter__'. Bug: b/253021172 Change-Id: Ia6135df68e3fa91ba7be004f62b45d5401dcc784 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/126194 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Rob Mohr <mohrr@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/.