account for Mock absurdities
authorJacob Lifshay <programmerjake@gmail.com>
Wed, 8 Dec 2021 01:51:14 +0000 (17:51 -0800)
committerJacob Lifshay <programmerjake@gmail.com>
Wed, 8 Dec 2021 01:51:14 +0000 (17:51 -0800)
src/soc/fu/pipe_data.py

index 40220a1c3b380b31aeec046d3824c047ebedfee5..ec6d240c89e3f75ff152a8a1d615b3b5f910b2dd 100644 (file)
@@ -85,4 +85,5 @@ class CommonPipeSpec:
 
 
 def get_pspec_draft_bitmanip(pspec):
-    return getattr(pspec, "draft_bitmanip", False)
+    # use `is True` to account for Mock absurdities
+    return getattr(pspec, "draft_bitmanip", False) is True