File tree 2 files changed +8
-2
lines changed
addons/source-python/packages/source-python
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):
359
359
attributes = {}
360
360
for cls , instance in self .server_classes .items ():
361
361
attributes .update (
362
- {attr :(instance , getattr ( cls , attr )) for attr in dir (cls )}
362
+ {attr :(instance , value ) for attr , value in vars (cls ). items ( )}
363
363
)
364
364
return attributes
365
365
Original file line number Diff line number Diff line change @@ -647,7 +647,13 @@ def function(
647
647
return_type = self .create_converter (return_type )
648
648
649
649
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
+
651
657
if cls ._binary is None :
652
658
raise ValueError ('_binary was not specified.' )
653
659
You can’t perform that action at this time.
0 commit comments