From 53a2a3303fab88634617935985bb72781107f570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Fri, 20 Dec 2024 14:41:14 +0100 Subject: [PATCH] removes helper function normalize_full_access_path_string --- src/pydase/utils/helpers.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/pydase/utils/helpers.py b/src/pydase/utils/helpers.py index 748213d..f47af3e 100644 --- a/src/pydase/utils/helpers.py +++ b/src/pydase/utils/helpers.py @@ -223,25 +223,3 @@ def current_event_loop_exists() -> bool: import asyncio return asyncio.get_event_loop_policy()._local._loop is not None # type: ignore - - -def normalize_full_access_path_string(s: str) -> str: - """Normalizes a string representing a full access path by converting double quotes - to single quotes. - - This function is useful for ensuring consistency in strings that represent access - paths containing dictionary keys, by replacing all double quotes (`"`) with single - quotes (`'`). - - Args: - s (str): The input string to be normalized. - - Returns: - A new string with all double quotes replaced by single quotes. - - Example: - >>> normalize_full_access_path_string('dictionary["first"].my_task') - "dictionary['first'].my_task" - """ - - return s.replace('"', "'")