aboutsummaryrefslogtreecommitdiff
path: root/pyecsca/ec/context.py
diff options
context:
space:
mode:
authorJ08nY2024-05-27 12:22:35 +0200
committerJ08nY2024-05-27 12:22:35 +0200
commitf5e45652424c6f49625144c193b0837a25f25543 (patch)
tree94f31b174992a57596fa04bc8c0f6545024ef5d7 /pyecsca/ec/context.py
parentcdba24efe7db53846cdec1cc15b4c4f01be90336 (diff)
downloadpyecsca-f5e45652424c6f49625144c193b0837a25f25543.tar.gz
pyecsca-f5e45652424c6f49625144c193b0837a25f25543.tar.zst
pyecsca-f5e45652424c6f49625144c193b0837a25f25543.zip
Diffstat (limited to 'pyecsca/ec/context.py')
-rw-r--r--pyecsca/ec/context.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyecsca/ec/context.py b/pyecsca/ec/context.py
index feac713..12776c3 100644
--- a/pyecsca/ec/context.py
+++ b/pyecsca/ec/context.py
@@ -265,6 +265,7 @@ def local(ctx: Optional[Context] = None) -> ContextManager:
Use a local context.
Use it like a contextmanager, the context is active during its execution.
+
>>> with local(DefaultContext()) as ctx:
... with Action() as action:
... pass