Projet

Général

Profil

0020-misc-fix-used-before-assignment-pylint-error-56982.patch

Valentin Deniaud, 21 septembre 2021 17:09

Télécharger (915 octets)

Voir les différences:

Subject: [PATCH 20/59] misc: fix used-before-assignment pylint error (#56982)

 tests/settings.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
tests/settings.py
39 39
            DATABASES['default'][key[2:]] = os.environ[key]
40 40

  
41 41

  
42
ALLOWED_HOSTS = ALLOWED_HOSTS + ['testserver', 'example.net', 'cache1.example.com', 'cache2.example.com']
42
ALLOWED_HOSTS = ALLOWED_HOSTS + [  # pylint: disable=used-before-assignment
43
    'testserver',
44
    'example.net',
45
    'cache1.example.com',
46
    'cache2.example.com',
47
]
43 48

  
44 49
A2_AUTH_KERBEROS_ENABLED = False
45 50

  
46
-