0047-misc-fix-global-variable-not-assigned-pylint-error-5.patch
src/authentic2/apps/journal/models.py | ||
---|---|---|
56 | 56 | |
57 | 57 |
class EventTypeDefinitionMeta(type): |
58 | 58 |
def __new__(cls, name, bases, namespace, **kwargs): |
59 |
global _registry |
|
60 | ||
61 | 59 |
new_cls = type.__new__(cls, name, bases, namespace, **kwargs) |
62 | 60 | |
63 | 61 |
name = namespace.get('name') |
src/authentic2/plugins.py | ||
---|---|---|
46 | 46 |
""" |
47 | 47 |
# XXX: necessary with tox under python3 for py2 env, dont know why... |
48 | 48 |
pkg_resources.get_distribution('authentic2') |
49 |
global PLUGIN_CACHE |
|
50 | 49 |
if group_name in PLUGIN_CACHE and use_cache: |
51 | 50 |
return PLUGIN_CACHE[group_name] |
52 | 51 |
plugins = [] |
53 |
- |