Remove unused util method

This commit is contained in:
Patrick Smith 2019-02-22 11:29:23 -05:00
parent f614a3ff83
commit 019e7f24c8

View File

@ -15,13 +15,6 @@ def getattr_path(obj, path, default=None):
return _obj
def update_obj(obj, dct, ignore_vals=[None]):
for k, v in dct.items():
if hasattr(obj, k) and v not in ignore_vals:
setattr(obj, k, v)
return obj
def camel_to_snake(camel_cased):
s1 = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", camel_cased)
return re.sub("([a-z0-9])([A-Z])", r"\1_\2", s1).lower()