diff options
| author | J08nY | 2021-04-24 19:41:17 +0200 |
|---|---|---|
| committer | J08nY | 2021-04-24 19:41:36 +0200 |
| commit | e949a8f717409d0bdf10eaa5dc19c4aac476ce73 (patch) | |
| tree | d00d607452777a10c5feb9ee478f1076add6903c /pyecsca/misc/cfg.py | |
| parent | 942c0fb9d6fcbff7c91c553211cc81c7e0939e4e (diff) | |
| download | pyecsca-e949a8f717409d0bdf10eaa5dc19c4aac476ce73.tar.gz pyecsca-e949a8f717409d0bdf10eaa5dc19c4aac476ce73.tar.zst pyecsca-e949a8f717409d0bdf10eaa5dc19c4aac476ce73.zip | |
Diffstat (limited to 'pyecsca/misc/cfg.py')
| -rw-r--r-- | pyecsca/misc/cfg.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pyecsca/misc/cfg.py b/pyecsca/misc/cfg.py index 82cb387..24b83f8 100644 --- a/pyecsca/misc/cfg.py +++ b/pyecsca/misc/cfg.py @@ -10,7 +10,7 @@ from public import public @public -class ECConfig(object): +class ECConfig: """Configuration for the :py:mod:`pyecsca.ec` package.""" _no_inverse_action: str = "error" @@ -121,7 +121,7 @@ class ECConfig(object): @public -class Config(object): +class Config: """Runtime configuration for the library.""" ec: ECConfig @@ -166,7 +166,7 @@ def resetconfig(token: Token) -> None: @public -class TemporaryConfig(object): +class TemporaryConfig: """ Temporary config context manager. @@ -180,6 +180,7 @@ class TemporaryConfig(object): """ def __init__(self): + self.token = None self.new_config = deepcopy(getconfig()) def __enter__(self) -> Config: |
