Skip to content
This repository has been archived by the owner on Jul 19, 2018. It is now read-only.

Commit

Permalink
Merge pull request #64 from scrapinghub/fix-new-scrapy-version-cleanup
Browse files Browse the repository at this point in the history
Fix new scrapy version cleanup
  • Loading branch information
dangra committed Jun 24, 2015
2 parents 27663d4 + f347493 commit da0f35c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions scrapylib/processors/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
import time
from urlparse import urljoin

from scrapy import log
from scrapy.contrib.loader.processor import Compose, MapCompose, TakeFirst
from scrapy.loader.processors import MapCompose, TakeFirst
from scrapy.utils.markup import (remove_tags, replace_escape_chars,
unquote_markup)


_clean_spaces_re = re.compile("\s+", re.U)


def clean_spaces(value):
return _clean_spaces_re.sub(' ', value)

Expand Down
2 changes: 1 addition & 1 deletion scrapylib/processors/date.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dateutil.parser import parse
from scrapy.contrib.loader.processor import Compose
from scrapy.loader.processors import Compose
from scrapy import log
from scrapylib.processors import default_output_processor

Expand Down

0 comments on commit da0f35c

Please sign in to comment.