File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
addons/source-python/packages/source-python Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ def dynamic_attributes(self):
359359 attributes = {}
360360 for cls , instance in self .server_classes .items ():
361361 attributes .update (
362- {attr :(instance , getattr ( cls , attr )) for attr in dir (cls )}
362+ {attr :(instance , value ) for attr , value in vars (cls ). items ( )}
363363 )
364364 return attributes
365365
Original file line number Diff line number Diff line change @@ -647,7 +647,13 @@ def function(
647647 return_type = self .create_converter (return_type )
648648
649649 class fget (object ):
650- def __get__ (fget_self , obj , cls ):
650+ def __get__ (fget_self , obj , cls = None ):
651+ if cls is None :
652+ if obj is None :
653+ return fget_self
654+ else :
655+ cls = obj .__class__
656+
651657 if cls ._binary is None :
652658 raise ValueError ('_binary was not specified.' )
653659
You can’t perform that action at this time.
0 commit comments