Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

moved patches.py to xlib/patches.py to avoid import errors

Pablo Hoffmana86b12a87956
diff --git a/scrapy/__init__.py b/scrapy/__init__.py
index 795e92d02..0edf0f153 100644
--- a/scrapy/__init__.py
+++ b/scrapy/__init__.py
@@ -12,7 +12,7 @@ if sys.version_info < (2,5):
sys.exit(1)
# monkey patches to fix external library issues
-from scrapy.patches import apply_patches
+from scrapy.xlib.patches import apply_patches
apply_patches()
# optional_features is a set containing Scrapy optional features
diff --git a/scrapy/patches.py b/scrapy/xlib/patches.py
similarity index 100%
rename from scrapy/patches.py
rename to scrapy/xlib/patches.py