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:
olveyra 2008-07-25 22:42:57 +00:00
parent 67ee6bff2e
commit bc00f8cce2
1 changed files with 1 additions and 7 deletions

View File

@ -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: