From 50f63df6c61a76f1dd8bc74075bbf02886753398 Mon Sep 17 00:00:00 2001 From: sezanzeb Date: Fri, 2 Apr 2021 16:52:47 +0200 Subject: [PATCH] duplicate info log --- keymapper/logger.py | 7 ------- keymapper/state.py | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/keymapper/logger.py b/keymapper/logger.py index 068fa33d..a908c7e0 100644 --- a/keymapper/logger.py +++ b/keymapper/logger.py @@ -153,8 +153,6 @@ def is_debug(): def log_info(name='key-mapper'): """Log version and name to the console.""" - # read values from setup.py - logger.info( '%s %s %s https://github.com/sezanzeb/key-mapper', name, VERSION, COMMIT_HASH @@ -163,11 +161,6 @@ def log_info(name='key-mapper'): if EVDEV_VERSION: logger.info('python-evdev %s', EVDEV_VERSION) - logger.info( - '%s %s %s https://github.com/sezanzeb/key-mapper', - name, VERSION, COMMIT_HASH - ) - if is_debug(): logger.warning( 'Debug level will log all your keystrokes! Do not post this ' diff --git a/keymapper/state.py b/keymapper/state.py index fd5e95ba..63ae799e 100644 --- a/keymapper/state.py +++ b/keymapper/state.py @@ -113,7 +113,7 @@ class SystemMapping: def get(self, name): """Return the code mapped to the key.""" # the correct casing should be shown when asking the system_mapping - # for stuff. indexing case insensitive to support old < 0.8.1 presets. + # for stuff. indexing case insensitive to support old presets. if name not in self._mapping: # only if not e.g. both "a" and "A" are in the mapping name = self._case_insensitive_mapping.get(str(name).lower())