diff options
author | John Estabrook <jestabro@vyos.io> | 2023-05-11 11:48:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-11 11:48:51 -0500 |
commit | d051e9def858060f808773abeb14a41a16df7baa (patch) | |
tree | c7e59bc8f6fe3a32da52c99757d08b64b05cbc81 /python | |
parent | c3f957b9bfc7233fe08d4dd65b80abf92097c81b (diff) | |
parent | c739eb23bb260ebb5ae595633c32a2956974a16a (diff) | |
download | vyos-1x-d051e9def858060f808773abeb14a41a16df7baa.tar.gz vyos-1x-d051e9def858060f808773abeb14a41a16df7baa.zip |
Merge pull request #2000 from dmbaturin/T5195-remove-snake-case-function
vyos.util: T5195: remove the unused camel case to snake case function
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/util.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/python/vyos/util.py b/python/vyos/util.py index 0593184cc..d5330db13 100644 --- a/python/vyos/util.py +++ b/python/vyos/util.py @@ -1146,13 +1146,6 @@ def sysctl_write(name, value): return True return False -# approach follows a discussion in: -# https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case -def camel_to_snake_case(name: str) -> str: - pattern = r'\d+|[A-Z]?[a-z]+|\W|[A-Z]{2,}(?=[A-Z][a-z]|\d|\W|$)' - words = re.findall(pattern, name) - return '_'.join(map(str.lower, words)) - def load_as_module(name: str, path: str): import importlib.util |