Skip to content

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

remove ancient modules kept only for error messages

Mikhail Korobov36453348fad9
diff --git a/.coveragerc b/.coveragerc
index aeadccb25..1fde07e7e 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -5,6 +5,4 @@ omit =
tests/*
scrapy/xlib/*
scrapy/conf.py
- scrapy/stats.py
- scrapy/project.py
scrapy/log.py
diff --git a/conftest.py b/conftest.py
index c733db646..2d015f5e9 100644
--- a/conftest.py
+++ b/conftest.py
@@ -11,8 +11,6 @@ def _py_files(folder):
collect_ignore = [
# deprecated or moved modules
"scrapy/conf.py",
- "scrapy/stats.py",
- "scrapy/project.py",
"scrapy/log.py",
# not a test, but looks like a test
diff --git a/scrapy/project.py b/scrapy/project.py
deleted file mode 100644
index d8973a6c7..000000000
--- a/scrapy/project.py
+++ /dev/null
@@ -1,17 +0,0 @@
-
-"""
-Obsolete module, kept for giving a meaningful error message when trying to
-import.
-"""
-
-raise ImportError("""scrapy.project usage has become obsolete.
-
-If you want to get the Scrapy crawler from your extension, middleware or
-pipeline implement the `from_crawler` class method (or look up for extending
-components that have already done it, such as spiders).
-
-For example:
-
- @classmethod
- def from_crawler(cls, crawler):
- return cls(crawler)""")
diff --git a/scrapy/stats.py b/scrapy/stats.py
deleted file mode 100644
index 710601430..000000000
--- a/scrapy/stats.py
+++ /dev/null
@@ -1,8 +0,0 @@
-
-"""
-Obsolete module, kept for giving a meaningful error message when trying to
-import.
-"""
-
-raise ImportError("scrapy.stats usage has become obsolete, use "
- "`crawler.stats` attribute instead")