mirror of https://github.com/scrapy/scrapy.git
re-reverted commit 119 back again to 118.
The code removed is confusing. --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40121
This commit is contained in:
parent
67ee6bff2e
commit
bc00f8cce2
|
|
@ -20,13 +20,7 @@ class Settings(object):
|
|||
self.core = self._import('scrapy.conf.core_settings')
|
||||
|
||||
def _import(self, modulepath):
|
||||
try:
|
||||
return __import__(modulepath, {}, {}, [''])
|
||||
except ImportError:
|
||||
import sys
|
||||
err = "Error: Can't find %s module in your python path\n"
|
||||
sys.stderr.write(err % modulepath)
|
||||
sys.exit(1)
|
||||
return __import__(modulepath, {}, {}, [''])
|
||||
|
||||
def __getitem__(self, opt_name):
|
||||
if opt_name in self.overrides:
|
||||
|
|
|
|||
Loading…
Reference in New Issue