CSIRO-enviro-informatics / pyldapi

A very small module to add Linked Data API functionality to a Python Flask installation
GNU General Public License v3.0
1 stars 0 forks source link

The use of `__metaclass__ = ABCMeta` doesn't work in Python 3.0+ #5

Closed ashleysommer closed 6 years ago

ashleysommer commented 6 years ago

Assigning a metaclass to a class by the use of the __metaclass__ keyword was deprecated in Python 3.0, and as of Python 3.5 its use can break code. The correct way to add a metaclass to a class in Python 3.0+ is this way:

class MyAbstractTask(object, metaclass=ABCMeta):
    ....
ashleysommer commented 6 years ago

Fixed in https://github.com/CSIRO-enviro-informatics/pyldapi/commit/561ae95db765c8d74e099f725576771730dea24b