We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb01bce commit a73f6f6Copy full SHA for a73f6f6
labthings/core/utilities.py
@@ -16,7 +16,8 @@
16
def get_docstring(obj):
17
ds = obj.__doc__
18
if ds:
19
- return ds.strip()
+ stripped = [line.strip() for line in ds.splitlines() if line]
20
+ return " \n".join(stripped)
21
else:
22
return ""
23
@@ -89,10 +90,6 @@ def create_from_path(items):
89
90
return tree_dict
91
92
-def bottom_level_name(obj):
93
- return obj.__name__.split(".")[-1]
94
-
95
96
def camel_to_snake(name):
97
s1 = re.sub("(.)([A-Z][a-z]+)", r"\1_\2", name)
98
return re.sub("([a-z0-9])([A-Z])", r"\1_\2", s1).lower()
0 commit comments