Skip to content

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

better call to parent class

nyov2899a778e6a8
diff --git a/scrapy/item.py b/scrapy/item.py
index c0434c576..28b419917 100644
--- a/scrapy/item.py
+++ b/scrapy/item.py
@@ -30,7 +30,7 @@ class ItemMeta(type):
else:
new_attrs[n] = v
- cls = type.__new__(mcs, class_name, bases, new_attrs)
+ cls = super(ItemMeta, mcs).__new__(mcs, class_name, bases, new_attrs)
cls.fields = cls.fields.copy()
cls.fields.update(fields)
return cls