Skip to content

Commit a73f6f6

Browse files
author
Joel Collins
committed
Removed unused bottom_level_name function
1 parent bb01bce commit a73f6f6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

labthings/core/utilities.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
def get_docstring(obj):
1717
ds = obj.__doc__
1818
if ds:
19-
return ds.strip()
19+
stripped = [line.strip() for line in ds.splitlines() if line]
20+
return " \n".join(stripped)
2021
else:
2122
return ""
2223

@@ -89,10 +90,6 @@ def create_from_path(items):
8990
return tree_dict
9091

9192

92-
def bottom_level_name(obj):
93-
return obj.__name__.split(".")[-1]
94-
95-
9693
def camel_to_snake(name):
9794
s1 = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
9895
return re.sub("([a-z0-9])([A-Z])", r"\1_\2", s1).lower()

0 commit comments

Comments
 (0)