zerver/lib: Remove inheritance from object.

This commit is contained in:
rht
2017-11-05 11:37:41 +01:00
committed by showell
parent 0e71b243ce
commit e311842a1b
22 changed files with 28 additions and 28 deletions

View File

@@ -71,7 +71,7 @@ def dict_with_str_keys(dct, encoding='utf-8'):
"""applies force_str on the keys of a dict (non-recursively)"""
return {force_str(key, encoding): value for key, value in dct.items()}
class ModelReprMixin(object):
class ModelReprMixin:
"""
This mixin provides a python 2 and 3 compatible way of handling string representation of a model.
When declaring a model, inherit this mixin before django.db.models.Model.