Skip to content

Commit

Permalink
update classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Jan 18, 2019
1 parent e9b2a14 commit 248ba81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions reversion_compare/compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


@python_2_unicode_compatible
class FieldVersionDoesNotExist(object):
class FieldVersionDoesNotExist:
"""
Sentinel object to handle missing fields
"""
Expand All @@ -36,7 +36,7 @@ def __str__(self):
DOES_NOT_EXIST = FieldVersionDoesNotExist()


class CompareObject(object):
class CompareObject:
def __init__(self, field, field_name, obj, version_record, follow):
self.field = field
self.field_name = field_name
Expand Down Expand Up @@ -250,7 +250,7 @@ def debug(self): # pragma: no cover
logger.debug(item)


class CompareObjects(object):
class CompareObjects:
def __init__(self, field, field_name, obj, version1, version2, is_reversed):
self.field = field
self.field_name = field_name
Expand Down
4 changes: 2 additions & 2 deletions reversion_compare/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from reversion_compare.compare import CompareObjects


class CompareMixin(object):
class CompareMixin:
"""A mixin to add comparison capabilities to your views"""

# list/tuple of field names for the compare view. Set to None for all existing fields
Expand Down Expand Up @@ -152,7 +152,7 @@ def fallback_compare(self, obj_compare):
return html


class CompareMethodsMixin(object):
class CompareMethodsMixin:
"""A mixin to add prepared compare methods."""

def generic_add_remove(self, raw_value1, raw_value2, value1, value2):
Expand Down
2 changes: 1 addition & 1 deletion reversion_compare_tests/utils/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
)


class Fixtures(object):
class Fixtures:
"""
Collection of all test data creation method.
This will be also used from external scripts, too!
Expand Down

0 comments on commit 248ba81

Please sign in to comment.