Skip to content

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

Remove object as base class for MutableChain

Eugenio Lacuestad6e928f47209
diff --git a/scrapy/utils/python.py b/scrapy/utils/python.py
index 875650f3e..e5582cc18 100644
--- a/scrapy/utils/python.py
+++ b/scrapy/utils/python.py
@@ -1,15 +1,15 @@
"""
This module contains essential stuff that should've come with Python itself ;)
"""
+import errno
import gc
+import inspect
import os
import re
-import inspect
+import sys
import weakref
-import errno
from functools import partial, wraps
from itertools import chain
-import sys
from scrapy.utils.decorators import deprecated
@@ -371,7 +371,7 @@ else:
gc.collect()
-class MutableChain(object):
+class MutableChain:
"""
Thin wrapper around itertools.chain, allowing to add iterables "in-place"
"""