From a09dd18bbb3332080d1194679b29b260ad01e5f2 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Tue, 26 Oct 2010 16:37:16 -0200 Subject: [PATCH] use absolute imports for compatibility with python 2.5 --- scrapy/selector/__init__.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scrapy/selector/__init__.py b/scrapy/selector/__init__.py index d84c01f9f..392108ea7 100644 --- a/scrapy/selector/__init__.py +++ b/scrapy/selector/__init__.py @@ -11,11 +11,11 @@ lxml will be used. from scrapy.conf import settings if settings['SELECTORS_BACKEND'] == 'lxml': - from .lxmlsel import * + from scrapy.selector.lxmlsel import * elif settings['SELECTORS_BACKEND'] == 'libxml2': - from .libxml2sel import * + from scrapy.selector.libxml2sel import * elif settings['SELECTORS_BACKEND'] == 'dummy': - from .dummysel import * + from scrapy.selector.dummysel import * else: try: import libxml2 @@ -23,8 +23,8 @@ else: try: import lxml except ImportError: - from .dummysel import * + from scrapy.selector.dummysel import * else: - from .lxmlsel import * + from scrapy.selector.lxmlsel import * else: - from .libxml2sel import * + from scrapy.selector.libxml2sel import *