Archived
1
0

changed __init__ of all sources to have an empty dictionary as default config value

This commit is contained in:
RTB 2014-06-06 12:48:30 +02:00
parent eb3eee77a0
commit df4ba2f784
4 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@ class ChemSpider(Source):
somewhere.
"""
def __init__(self, config):
def __init__(self, config={}):
Source.__init__(self, config)
website = 'http://www.chemspider.com/*'

View File

@ -24,7 +24,7 @@ class NIST(Source):
ignore_list = set()
def __init__(self, config):
def __init__(self, config={}):
Source.__init__(self, config)
def parse(self, response):

View File

@ -19,7 +19,7 @@ class WikipediaParser(Source):
__spider = None
searched_compounds = []
def __init__(self, config):
def __init__(self, config={}):
Source.__init__(self, config)
def parse(self, response):

View File

@ -6,7 +6,7 @@ class Source:
website = "http://something/*" # Regex of URI's the source is able to parse
_spider = None
def __init__(self, config):
def __init__(self, config={}):
"""
Initiation of a new Source
"""