Improve comment

This commit is contained in:
Daniel Hahler
2018-12-12 23:29:43 +01:00
committed by GitHub
parent 7a600ea3eb
commit 9b3be870dc

View File

@@ -197,7 +197,7 @@ class MonkeyPatch(object):
raise AttributeError(name)
else:
oldval = getattr(target, name, notset)
# avoid class descriptors like staticmethod/classmethod
# Avoid class descriptors like staticmethod/classmethod.
if inspect.isclass(target):
oldval = target.__dict__.get(name, notset)
self._setattr.append((target, name, oldval))