mirror of https://github.com/scrapy/scrapy.git
imports should be at module's top
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%4060
This commit is contained in:
parent
9b3c3c14e5
commit
90e93a7635
|
|
@ -5,6 +5,7 @@ ExtensionManager (extensions) to be used as singleton.
|
|||
"""
|
||||
from scrapy.core.exceptions import NotConfigured
|
||||
from scrapy.utils.misc import load_class
|
||||
from scrapy.core import log
|
||||
from scrapy.conf import settings
|
||||
|
||||
class ExtensionManager(object):
|
||||
|
|
@ -29,7 +30,6 @@ class ExtensionManager(object):
|
|||
except NotConfigured, e:
|
||||
self.disabled[cls.__name__] = extension_path
|
||||
if e.args:
|
||||
from scrapy.core import log
|
||||
log.msg(e)
|
||||
self.loaded = True
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue