Skip to content

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

Remove object parent class

Eugenio Lacuestaa499f38b14d1
diff --git a/scrapy/core/downloader/handlers/http11.py b/scrapy/core/downloader/handlers/http11.py
index c53c9bb2d..6f1bd9ad6 100644
--- a/scrapy/core/downloader/handlers/http11.py
+++ b/scrapy/core/downloader/handlers/http11.py
@@ -268,7 +268,7 @@ class ScrapyProxyAgent(Agent):
)
-class ScrapyAgent(object):
+class ScrapyAgent:
_Agent = Agent
_ProxyAgent = ScrapyProxyAgent
@@ -438,7 +438,7 @@ class ScrapyAgent(object):
@implementer(IBodyProducer)
-class _RequestBodyProducer(object):
+class _RequestBodyProducer:
def __init__(self, body):
self.body = body