Skip to content

Commit

Permalink
check windows 32 bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeichikawasalesforce committed Nov 21, 2024
1 parent 741bf17 commit bebeab0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tabpy/tabpy_tools/custom_query_object.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import inspect
import logging
import platform
import sys
from .query_object import QueryObject as _QueryObject


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

def get_doc_string(self):
"""Get doc string from customized query"""
if self.custom_query.__doc__ is not None:
return self.custom_query.__doc__
default_docstring = "-- no docstring found in query function --"
if platform.system() == "Windows" and sys.maxsize <= 2**32:
return default_docstring
else:
return "-- no docstring found in query function --"
return inspect.getdoc(self.custom_query) or default_docstring

def get_methods(self):
return [self.get_query_method()]
Expand Down

0 comments on commit bebeab0

Please sign in to comment.