File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
- import platform
2
+ import sys
3
3
from .query_object import QueryObject as _QueryObject
4
4
5
5
@@ -75,11 +75,11 @@ def get_doc_string(self):
75
75
default_docstring = "-- no docstring found in query function --"
76
76
77
77
# Skip docstring parsing on Windows 32-bit systems
78
- if platform . system () == "Windows" and platform . architecture ()[ 0 ] == "32bit" :
78
+ if sys . platform == 'win32' :
79
79
return default_docstring
80
80
81
- docstring = getattr (self .custom_query , '__doc__' , None )
82
- return docstring . strip () if isinstance (docstring , str ) and docstring else default_docstring
81
+ ds = getattr (self .custom_query , '__doc__' , None )
82
+ return ds if ds and isinstance (ds , str ) else default_docstring
83
83
84
84
def get_methods (self ):
85
85
return [self .get_query_method ()]
You can’t perform that action at this time.
0 commit comments