Skip to content

Commit bebeab0

Browse files
check windows 32 bit
1 parent 741bf17 commit bebeab0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tabpy/tabpy_tools/custom_query_object.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
import inspect
12
import logging
3+
import platform
4+
import sys
25
from .query_object import QueryObject as _QueryObject
36

47

@@ -71,10 +74,11 @@ def query(self, *args, **kwargs):
7174

7275
def get_doc_string(self):
7376
"""Get doc string from customized query"""
74-
if self.custom_query.__doc__ is not None:
75-
return self.custom_query.__doc__
77+
default_docstring = "-- no docstring found in query function --"
78+
if platform.system() == "Windows" and sys.maxsize <= 2**32:
79+
return default_docstring
7680
else:
77-
return "-- no docstring found in query function --"
81+
return inspect.getdoc(self.custom_query) or default_docstring
7882

7983
def get_methods(self):
8084
return [self.get_query_method()]

0 commit comments

Comments
 (0)