scrapy-sqlitem icon indicating copy to clipboard operation
scrapy-sqlitem copied to clipboard

Fix Metaclass usage for Python 3

Open bpgoldsb opened this issue 8 years ago • 1 comments

Fix the way SqlAlchemyItemMeta is used in SqlItem to be compatible with Python 2.x and 3.x.

bpgoldsb avatar Apr 24 '17 02:04 bpgoldsb

For anybody else having this issue, a workaround until this PR can be merged is to import SqlAlchemyItemMeta from scrapy_sqlitem.sqlitem and use, e.g.

class MyItem(SqlItem, metaclass=SqlAlchemyItemMeta)`:
     ...

philtweir avatar Sep 23 '17 15:09 philtweir