Skip to content

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

Rename scrapy/dupefilter.py to scrapy/dupefilters.py

Julia Medina54a4ce069c88
diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst
index f331b1dba..f035bc33d 100644
--- a/docs/topics/settings.rst
+++ b/docs/topics/settings.rst
@@ -487,7 +487,7 @@ If you want to disable it set to 0.
DUPEFILTER_CLASS
----------------
-Default: ``'scrapy.dupefilter.RFPDupeFilter'``
+Default: ``'scrapy.dupefilters.RFPDupeFilter'``
The class used to detect and filter duplicate requests.
diff --git a/scrapy/dupefilter.py b/scrapy/dupefilters.py
similarity index 100%
rename from scrapy/dupefilter.py
rename to scrapy/dupefilters.py
diff --git a/scrapy/settings/default_settings.py b/scrapy/settings/default_settings.py
index f2098d626..57dfc3256 100644
--- a/scrapy/settings/default_settings.py
+++ b/scrapy/settings/default_settings.py
@@ -100,7 +100,7 @@ DOWNLOADER_MIDDLEWARES_BASE = {
DOWNLOADER_STATS = True
-DUPEFILTER_CLASS = 'scrapy.dupefilter.RFPDupeFilter'
+DUPEFILTER_CLASS = 'scrapy.dupefilters.RFPDupeFilter'
try:
EDITOR = os.environ['EDITOR']
diff --git a/tests/py3-ignores.txt b/tests/py3-ignores.txt
index 3d87bcb9a..e0871c350 100644
--- a/tests/py3-ignores.txt
+++ b/tests/py3-ignores.txt
@@ -25,7 +25,7 @@ tests/test_downloadermiddleware_retry.py
tests/test_downloadermiddleware_robotstxt.py
tests/test_downloadermiddleware_stats.py
tests/test_downloadermiddleware_useragent.py
-tests/test_dupefilter.py
+tests/test_dupefilters.py
tests/test_engine.py
tests/test_http_cookies.py
tests/test_http_request.py
diff --git a/tests/test_dupefilter.py b/tests/test_dupefilters.py
similarity index 97%
rename from tests/test_dupefilter.py
rename to tests/test_dupefilters.py
index b0dd9546b..f8f800a72 100644
--- a/tests/test_dupefilter.py
+++ b/tests/test_dupefilters.py
@@ -1,7 +1,7 @@
import hashlib
import unittest
-from scrapy.dupefilter import RFPDupeFilter
+from scrapy.dupefilters import RFPDupeFilter
from scrapy.http import Request