Skip to content

Commit e422305

Browse files
committed
Remove more unnecessary supers
1 parent a5bee09 commit e422305

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

ace/sources.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,6 @@ class DefaultSource(Source):
401401
3. JavaScript expansion detection: Identifies elements that might trigger
402402
table expansion via JavaScript (logging only, not implemented)
403403
"""
404-
def __init__(self, config=None, table_dir=None):
405-
super().__init__(config=config, table_dir=table_dir)
406404

407405
def parse_article(self, html, pmid=None, **kwargs):
408406
soup = super(DefaultSource, self).parse_article(html, pmid, **kwargs)
@@ -937,9 +935,6 @@ def _get_base_url(self, soup):
937935
return None
938936

939937
class MDPISource(Source):
940-
def __init__(self, config=None, table_dir=None, use_readability=True):
941-
super().__init__(config=config, table_dir=table_dir, use_readability=use_readability)
942-
943938
def parse_article(self, html, pmid=None, **kwargs):
944939
soup = super(MDPISource, self).parse_article(html, pmid, **kwargs)
945940
if not soup:
@@ -1447,8 +1442,6 @@ def extract_pmid(self, soup):
14471442
return scrape.get_pmid_from_doi(self.extract_doi(soup))
14481443

14491444
class SageSource(Source):
1450-
def __init__(self, config=None, table_dir=None, use_readability=True):
1451-
super().__init__(config=config, table_dir=table_dir, use_readability=use_readability)
14521445

14531446
def parse_article(self, html, pmid=None, **kwargs):
14541447
soup = super(SageSource, self).parse_article(html, pmid, **kwargs)
@@ -2092,9 +2085,6 @@ def extract_pmid(self, soup):
20922085

20932086
class AmPsychSource(Source):
20942087

2095-
def __init__(self, config=None, table_dir=None, use_readability=True):
2096-
super().__init__(config=config, table_dir=table_dir, use_readability=use_readability)
2097-
20982088
def parse_article(self, html, pmid=None, **kwargs):
20992089
soup = super(AmPsychSource, self).parse_article(html, pmid, **kwargs)
21002090
if not soup:

0 commit comments

Comments
 (0)