Scrapy, a fast high-level web crawling & scraping framework for Python.
Revert some non-changes
Matthijs Vos935387aaea2f
diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.pyindex cdd5a11c9..f51012e3d 100644--- a/scrapy/utils/misc.py+++ b/scrapy/utils/misc.py@@ -41,7 +41,7 @@ def load_object(path):except ValueError:raise ValueError("Error loading object '%s': not a full path" % path)- module, name = path[:dot], path[dot + 1:]+ module, name = path[:dot], path[dot+1:]mod = import_module(module)try:@@ -86,9 +86,9 @@ def extract_regex(regex, text, encoding='utf-8'):regex = re.compile(regex, re.UNICODE)try:- strings = [regex.search(text).group('extract')] # named group+ strings = [regex.search(text).group('extract')] # named groupexcept Exception:- strings = regex.findall(text) # full regex or numbered groups+ strings = regex.findall(text) # full regex or numbered groupsstrings = flatten(strings)if isinstance(text, six.text_type):