mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Fix flake8 complaints
This commit is contained in:
parent
0e45c7b3e4
commit
06f2d57386
2 changed files with 4 additions and 4 deletions
|
|
@ -124,8 +124,8 @@ class ConfigurationImporter(object):
|
|||
def stylize(text):
|
||||
return colorize(text, fg='green')
|
||||
|
||||
if (self.argv[1] == 'runserver' and
|
||||
os.environ.get('RUN_MAIN') == 'true'):
|
||||
if self.argv[1] == 'runserver' \
|
||||
and os.environ.get('RUN_MAIN') == 'true':
|
||||
|
||||
message = ("django-configurations version {0}, using "
|
||||
"configuration '{1}'".format(__version__,
|
||||
|
|
|
|||
|
|
@ -52,8 +52,8 @@ class Value(object):
|
|||
instance.late_binding = kwargs.get('late_binding')
|
||||
if not instance.late_binding:
|
||||
instance.__init__(*args, **kwargs)
|
||||
if ((instance.environ and instance.environ_name) or
|
||||
(not instance.environ and instance.default)):
|
||||
if (instance.environ and instance.environ_name) \
|
||||
or (not instance.environ and instance.default):
|
||||
instance = instance.setup(instance.environ_name)
|
||||
return instance
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue