Improve comment
This commit is contained in:
		
							parent
							
								
									7a600ea3eb
								
							
						
					
					
						commit
						9b3be870dc
					
				| 
						 | 
					@ -197,7 +197,7 @@ class MonkeyPatch(object):
 | 
				
			||||||
                raise AttributeError(name)
 | 
					                raise AttributeError(name)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            oldval = getattr(target, name, notset)
 | 
					            oldval = getattr(target, name, notset)
 | 
				
			||||||
            # avoid class descriptors like staticmethod/classmethod
 | 
					            # Avoid class descriptors like staticmethod/classmethod.
 | 
				
			||||||
            if inspect.isclass(target):
 | 
					            if inspect.isclass(target):
 | 
				
			||||||
                oldval = target.__dict__.get(name, notset)
 | 
					                oldval = target.__dict__.get(name, notset)
 | 
				
			||||||
            self._setattr.append((target, name, oldval))
 | 
					            self._setattr.append((target, name, oldval))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue