0048-misc-fix-global-statement-pylint-error-56982.patch
src/authentic2/apps/journal/models.py | ||
---|---|---|
46 | 46 | |
47 | 47 |
@contextmanager |
48 | 48 |
def clean_registry(): |
49 |
global _registry |
|
49 |
global _registry # pylint: disable=global-statement
|
|
50 | 50 | |
51 | 51 |
old_registry = _registry |
52 | 52 |
_registry = {} |
src/authentic2/context_processors.py | ||
---|---|---|
50 | 50 | |
51 | 51 | |
52 | 52 |
def a2_processor(request): |
53 |
global __AUTHENTIC2_DISTRIBUTION |
|
53 |
global __AUTHENTIC2_DISTRIBUTION # pylint: disable=global-statement
|
|
54 | 54 |
variables = {} |
55 | 55 |
variables.update(app_settings.TEMPLATE_VARS) |
56 | 56 |
variables['federations'] = UserFederations(request) |
src/authentic2_auth_fc/utils.py | ||
---|---|---|
99 | 99 | |
100 | 100 | |
101 | 101 |
def resolve_insee_commune(insee_code): |
102 |
global _insee_communes |
|
102 |
global _insee_communes # pylint: disable=global-statement
|
|
103 | 103 |
if not _insee_communes: |
104 | 104 |
with open(os.path.join(os.path.dirname(__file__), 'insee-communes.json')) as f: |
105 | 105 |
_insee_communes = json.load(f) |
... | ... | |
110 | 110 | |
111 | 111 | |
112 | 112 |
def resolve_insee_country(insee_code): |
113 |
global _insee_countries |
|
113 |
global _insee_countries # pylint: disable=global-statement
|
|
114 | 114 | |
115 | 115 |
if not _insee_countries: |
116 | 116 |
with open(os.path.join(os.path.dirname(__file__), 'insee-countries.json')) as f: |
117 |
- |