From a39ee992ab54eddb4ce06c41e8d552e55bf4e0b2 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Wed, 7 Apr 2021 20:22:36 -0400 Subject: good thing the decorator wasnt applied to anything with an actual pydoc --- python/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/decorators.py b/python/decorators.py index bd4a82c7..fcd3a8be 100644 --- a/python/decorators.py +++ b/python/decorators.py @@ -4,7 +4,7 @@ def passive(cls): .. note:: This object is a "passive" object. Any changes you make to it will not be reflected in the core and vice-versa. If you wish to update a core version of this object you should use the appropriate API. ''' - if hasattr(cls, ".__doc__") and cls.__doc__: + if hasattr(cls, "__doc__") and cls.__doc__: cls.__doc__ += passive_note else: cls.__doc__ = passive_note -- cgit v1.3.1