From 6890f04b23f593e9cd7e00bd9cd0bb244d472aff Mon Sep 17 00:00:00 2001 From: Justin Ross Date: Mon, 30 Dec 2024 11:26:27 -0500 Subject: [PATCH] WIP --- python/commands.py | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/python/commands.py b/python/commands.py index 2af5509..cda2d06 100644 --- a/python/commands.py +++ b/python/commands.py @@ -502,26 +502,6 @@ def get(obj): return property(get) -def option_name(property_name): - chars = list() - prev = None - - for char in property_name: - if char.isupper(): - if prev and prev.islower(): - chars.append("-") - - chars.append(char.lower()) - else: - if prev and prev.isupper() and chars[-2] != "-": - chars.insert(-1, "-") - - chars.append(char) - - prev = char - - return "".join(chars) - class Option(ModelObjectAttribute): type = option_property("type") required = option_property("required", default=False)