mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-27 06:03:58 +00:00
fixed cyclic import between scrapy.core.engine and scrapy.utils.db
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40565
This commit is contained in:
parent
8a885e4dc8
commit
a593af5f53
@ -4,7 +4,6 @@ Function for dealing with databases
|
||||
import re
|
||||
from scrapy.conf import settings
|
||||
from scrapy import log
|
||||
from scrapy.core.engine import scrapyengine
|
||||
|
||||
class URIValidationError(Exception):
|
||||
pass
|
||||
@ -28,6 +27,7 @@ def mysql_connect(db_uri_or_dict, **kwargs):
|
||||
Connects to a MySQL DB given a mysql URI
|
||||
"""
|
||||
import MySQLdb
|
||||
from scrapy.core.engine import scrapyengine
|
||||
|
||||
if isinstance(db_uri_or_dict, dict):
|
||||
d = db_uri_or_dict
|
||||
|
Loading…
x
Reference in New Issue
Block a user