Skip to content

Commit ef066ac

Browse files
docstring str
1 parent a351438 commit ef066ac

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tabpy/tabpy_tools/custom_query_object.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,7 @@ def query(self, *args, **kwargs):
7171

7272
def get_doc_string(self):
7373
"""Get doc string from customized query"""
74-
if self.custom_query.__doc__ is not None:
75-
return str(
76-
bytes(self.custom_query.__doc__, "utf-8").decode("unicode_escape")
77-
)
78-
else:
79-
return "-- no docstring found in query function --"
74+
return str(self.custom_query.__doc__ or "-- no docstring found in query function --")
8075

8176
def get_methods(self):
8277
return [self.get_query_method()]

0 commit comments

Comments
 (0)