gred.lldap.bootstrap: removed helper functions
This commit is contained in:
parent
570b41ac5d
commit
062a3c0a12
1 changed files with 1 additions and 11 deletions
|
@ -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"(?<!^)(?=[A-Z])", "_", s).lower()
|
||||
|
||||
|
||||
class AttributeTypes:
|
||||
STRING = "STRING"
|
||||
INTEGER = "INTEGER"
|
||||
|
|
Loading…
Reference in a new issue