Made 0.3.x work with old six.

This is a backport of 46809d02b2 and
closes #37. Thanks to @mei-li for the report.
This commit is contained in:
Jannis Leidel 2013-09-20 19:11:30 +02:00
parent 822397799b
commit 088223e87b

View file

@ -16,7 +16,7 @@ install_failure = ("django-configurations settings importer wasn't "
class SettingsBase(type):
def __new__(cls, name, bases, attrs):
if bases != (object,) and bases[0].__name__ != 'NewBase':
if bases not in ((object,), ()) and bases[0].__name__ != 'NewBase':
# if this is actually a subclass in a settings module
# we better check if the importer was correctly installed
from . import importer