test: xkeyboard-config: flake8 fixes
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 30 Oct 2019 02:03:48 +0000 (12:03 +1000)
committerRan Benita <ran234@gmail.com>
Fri, 1 Nov 2019 08:24:03 +0000 (10:24 +0200)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/xkeyboard-config-test.py.in

index c271f5a..e965858 100755 (executable)
@@ -13,12 +13,16 @@ verbose = True
 DEFAULT_RULES_XML = '@XKB_CONFIG_ROOT@/rules/evdev.xml'
 
 # Meson needs to fill this in so we can call the tool in the buildir.
-EXTRA_PATH='@MESON_BUILD_ROOT@'
+EXTRA_PATH = '@MESON_BUILD_ROOT@'
 os.environ['PATH'] = ':'.join([EXTRA_PATH, os.getenv('PATH')])
 
 
+def noop_progress_bar(x, desc):
+    return x
+
+
 # The function generating the progress bar (if any).
-progress_bar = lambda x, desc: x
+progress_bar = noop_progress_bar
 if os.isatty(sys.stdout.fileno()):
     try:
         from tqdm import tqdm