comparison cagou/core/kivy_hack.py @ 284:ca4daced4638

misc: replaced "dummy" by "__"
author Goffi <goffi@goffi.org>
date Mon, 25 Mar 2019 07:11:09 +0100
parents 1b835bcfa663
children 772c170b47a9
comparison
equal deleted inserted replaced
283:c73a7cd36b54 284:ca4daced4638
37 # kivy handles its own loggers, we don't want that! 37 # kivy handles its own loggers, we don't want that!
38 import logging 38 import logging
39 root_logger = logging.root 39 root_logger = logging.root
40 kivy_logger = logging.getLogger('kivy') 40 kivy_logger = logging.getLogger('kivy')
41 ori_addHandler = kivy_logger.addHandler 41 ori_addHandler = kivy_logger.addHandler
42 kivy_logger.addHandler = lambda dummy: None 42 kivy_logger.addHandler = lambda __: None
43 ori_setLevel = kivy_logger.setLevel 43 ori_setLevel = kivy_logger.setLevel
44 if kivy_level == 'FOLLOW': 44 if kivy_level == 'FOLLOW':
45 # level is following SàT level 45 # level is following SàT level
46 kivy_logger.setLevel = lambda level: None 46 kivy_logger.setLevel = lambda level: None
47 elif kivy_level == 'KIVY': 47 elif kivy_level == 'KIVY':