Skip to content

Commit

Permalink
Fixed #19576 -- Use six.with_metaclass uniformously accross code base.
Browse files Browse the repository at this point in the history
  • Loading branch information
charettes authored and claudep committed Jan 8, 2013
1 parent 55da775 commit f58efd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django/db/models/base.py
Expand Up @@ -311,7 +311,7 @@ def __init__(self, db=None):
self.adding = True


class Model(six.with_metaclass(ModelBase, object)):
class Model(six.with_metaclass(ModelBase)):
_deferred = False

def __init__(self, *args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion django/db/models/query.py
Expand Up @@ -990,7 +990,7 @@ class InstanceCheckMeta(type):
def __instancecheck__(self, instance):
return instance.query.is_empty()

class EmptyQuerySet(six.with_metaclass(InstanceCheckMeta), object):
class EmptyQuerySet(six.with_metaclass(InstanceCheckMeta)):
"""
Marker class usable for checking if a queryset is empty by .none():
isinstance(qs.none(), EmptyQuerySet) -> True
Expand Down

0 comments on commit f58efd0

Please sign in to comment.