mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 07:23:22 +00:00
refactor: Replace super(.*self) with Python 3-specific super().
We change all the instances except for the `test_helpers.py` TimeTrackingCursor monkey-patching, which actually needs to specify the base class.
This commit is contained in:
@@ -24,7 +24,7 @@ class HelpDocumentationSpider(BaseDocumentationSpider):
|
||||
help_images_static_dir = get_help_images_dir(help_images_path)
|
||||
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
||||
super(HelpDocumentationSpider, self).__init__(*args, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
self.static_images = set() # type: Set
|
||||
|
||||
def _is_external_url(self, url: str) -> bool:
|
||||
|
||||
@@ -30,7 +30,7 @@ class BaseDocumentationSpider(scrapy.Spider):
|
||||
attrs = ('href', 'src')
|
||||
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
||||
super(BaseDocumentationSpider, self).__init__(*args, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
self.has_error = False
|
||||
|
||||
def _set_error_state(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user