summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-06-08 13:27:59 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-06-08 13:27:59 +0300
commit994ae33a811fec7ca11ad049b56b85b4f8c2a553 (patch)
tree8b3501a272efe0c2448bd69a27af1fcfe396a457 /src
parenteb825f62ee876e5cf6c6ffc31a7e218d78c94993 (diff)
upd
Diffstat (limited to 'src')
-rw-r--r--src/home/config/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/home/config/config.py b/src/home/config/config.py
index 8ed8483..2d49524 100644
--- a/src/home/config/config.py
+++ b/src/home/config/config.py
@@ -10,19 +10,19 @@ from argparse import ArgumentParser
from ..util import parse_addr
-my_validators = {}
+_my_validators = {}
def _get_validator(name: str) -> Optional[callable]:
if hasattr(validators, f'{name}_validator'):
return getattr(validators, f'{name}_validator')
- if name in my_validators:
- return my_validators[name]
+ if name in _my_validators:
+ return _my_validators[name]
return None
def add_validator(name: str, f: callable):
- my_validators[name] = f
+ _my_validators[name] = f
class ConfigUnit: