Skip to content

Commit

Permalink
Base classes should always inherit from object
Browse files Browse the repository at this point in the history
  • Loading branch information
atombrella authored and benjaoming committed Dec 7, 2017
1 parent bdce07f commit d3ffac2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wiki/editors/base.py
Expand Up @@ -3,7 +3,7 @@
from django import forms


class BaseEditor():
class BaseEditor(object):

"""Editors should inherit from this. See wiki.editors for examples."""

Expand Down
2 changes: 1 addition & 1 deletion src/wiki/forms.py
Expand Up @@ -103,7 +103,7 @@ def _clean_slug(slug, urlpath):
Group = apps.get_model(settings.GROUP_MODEL)


class SpamProtectionMixin():
class SpamProtectionMixin(object):

"""Check a form for spam. Only works if properties 'request' and 'revision_model' are set."""

Expand Down

0 comments on commit d3ffac2

Please sign in to comment.