-
Notifications
You must be signed in to change notification settings - Fork 13
Use new-style classes #71
Copy link
Copy link
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels