File size: 449 Bytes
907001b
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
def remove_not_allowed_in_console():
    """pass"""
    not_allowed_in_console = []
    if CONSOLE_ACTIVE:
        for name in transformers:
            tr_module = import_transformer(name)
            if hasattr(tr_module, 'NO_CONSOLE'):
                not_allowed_in_console.append((name, tr_module))
        for name, tr_module in not_allowed_in_console:
            print(tr_module.NO_CONSOLE)
            transformers[name] = NullTransformer()