We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5231e4f commit 0b2ed8eCopy full SHA for 0b2ed8e
1 file changed
tabpy/tabpy_tools/custom_query_object.py
@@ -1,5 +1,5 @@
1
import logging
2
-import platform
+import sys
3
from .query_object import QueryObject as _QueryObject
4
5
@@ -75,11 +75,11 @@ def get_doc_string(self):
75
default_docstring = "-- no docstring found in query function --"
76
77
# Skip docstring parsing on Windows 32-bit systems
78
- if platform.system() == "Windows" and platform.architecture()[0] == "32bit":
+ if sys.platform == 'win32':
79
return default_docstring
80
81
- docstring = getattr(self.custom_query, '__doc__', None)
82
- return docstring.strip() if isinstance(docstring, str) and docstring else default_docstring
+ ds = getattr(self.custom_query, '__doc__', None)
+ return ds if ds and isinstance(ds, str) else default_docstring
83
84
def get_methods(self):
85
return [self.get_query_method()]
0 commit comments