Fixed #19576 -- Use six.with_metaclass uniformously accross code base.

This commit is contained in:
Simon Charette 2013-01-07 23:41:59 -05:00 committed by Claude Paroz
parent 55da775ce1
commit f58efd07ff
2 changed files with 2 additions and 2 deletions

View file

@ -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