mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
...
This commit is contained in:
parent
0c8a6cb91a
commit
6031bf4799
@ -183,8 +183,8 @@ class property:
|
||||
def __init__(self, fget, fset=None):
|
||||
self.fget = fget
|
||||
self.fset = fset
|
||||
if '__doc__' in fget.__dict__:
|
||||
self.__doc__ = fget.__dict__['__doc__']
|
||||
if hasattr(fget, '__doc__'):
|
||||
self.__doc__ = fget.__doc__
|
||||
|
||||
def __get__(self, obj):
|
||||
return self.fget(obj)
|
||||
|
Loading…
x
Reference in New Issue
Block a user