py3: port one last use of im_func

This commit is contained in:
Eli Schwartz 2019-04-18 01:09:47 -04:00
parent 54ddf5ec5f
commit 3972c79375
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6

View File

@ -530,7 +530,7 @@ class BasicNewsRecipe(Recipe):
@property @property
def cloned_browser(self): def cloned_browser(self):
if self.get_browser.im_func is BasicNewsRecipe.get_browser.im_func: if hasattr(self.get_browser, 'is_base_class_implementation'):
# We are using the default get_browser, which means no need to # We are using the default get_browser, which means no need to
# clone # clone
br = BasicNewsRecipe.get_browser(self) br = BasicNewsRecipe.get_browser(self)