From 062a3c0a12ff182d37d56020dbf7b119503c295e Mon Sep 17 00:00:00 2001 From: eyjhb Date: Sun, 22 Dec 2024 22:05:16 +0100 Subject: [PATCH] gred.lldap.bootstrap: removed helper functions --- machines/gerd/services/lldap/bootstrap/attributes.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/machines/gerd/services/lldap/bootstrap/attributes.py b/machines/gerd/services/lldap/bootstrap/attributes.py index d7b6790..9ac1100 100644 --- a/machines/gerd/services/lldap/bootstrap/attributes.py +++ b/machines/gerd/services/lldap/bootstrap/attributes.py @@ -4,8 +4,7 @@ import gql from gql.dsl import DSLQuery, DSLSchema, dsl_gql, DSLMutation from gql.transport.aiohttp import AIOHTTPTransport -from pprint import pprint -import re +from .utils import to_camelcase, to_snakecase import logging @@ -13,15 +12,6 @@ import logging logger = logging.getLogger(__name__) -def to_camelcase(s): - s = re.sub(r"(_|-)+", " ", s).title().replace(" ", "").replace("*", "") - return "".join([s[0].lower(), s[1:]]) - - -def to_snakecase(s): - return re.sub(r"(?