File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
clang/bindings/python/clang Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -2980,11 +2980,7 @@ def availability(self):
2980
2980
2981
2981
@property
2982
2982
def briefComment (self ):
2983
- if conf .function_exists ("clang_getCompletionBriefComment" ):
2984
- return _CXString .from_result (
2985
- conf .lib .clang_getCompletionBriefComment (self .obj )
2986
- )
2987
- return ""
2983
+ return _CXString .from_result (conf .lib .clang_getCompletionBriefComment (self .obj ))
2988
2984
2989
2985
def __repr__ (self ):
2990
2986
return (
@@ -4264,14 +4260,6 @@ def get_cindex_library(self) -> CDLL:
4264
4260
4265
4261
return library
4266
4262
4267
- def function_exists (self , name : str ) -> bool :
4268
- try :
4269
- getattr (self .lib , name )
4270
- except AttributeError :
4271
- return False
4272
-
4273
- return True
4274
-
4275
4263
4276
4264
conf = Config ()
4277
4265
You can’t perform that action at this time.
0 commit comments