Scrapy, a fast high-level web crawling & scraping framework for Python.
removed location_str function incorrectly added to this module
Pablo Hoffman6637d8cf6826
diff --git a/scrapy/trunk/scrapy/utils/misc.py b/scrapy/trunk/scrapy/utils/misc.pyindex 6f27075e2..b567d3f67 100644--- a/scrapy/trunk/scrapy/utils/misc.py+++ b/scrapy/trunk/scrapy/utils/misc.py@@ -176,13 +176,3 @@ def extract_regex(regex, text, encoding):return [remove_entities(s, keep=['lt', 'amp']) for s in strings]else:return [remove_entities(unicode(s, encoding), keep=['lt', 'amp']) for s in strings]--_regex_type = type(re.compile("", 0))--def location_str(location):- """Return a human friendly representation of a parser location"""-- if isinstance(location, _regex_type):- return "(regex) " + location.pattern- else:- return location