Skip to content

Use new-style classes #71

@ewheeler

Description

@ewheeler

Classes should subclass object to ensure compatibility among Python 2.x and Python 3.x versions.
Without subclassing object these classes are 'old-style' which have some very different behaviors around how super works and several other differences. Read more here: https://www.python.org/doc/newstyle/

The Facade and FakeResponse classes, for example, should be updated:
https://github.com/unicefuganda/eums/blob/master/eums/vision/vision_facade.py#L32
https://github.com/unicefuganda/eums/blob/master/eums/rapid_pro/fake_response.py#L1

Also some here:
https://github.com/unicefuganda/eums/blob/master/eums/test/services/mock_celery.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions