diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2019-10-30 12:03:48 +1000 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2019-11-01 10:24:03 +0200 |
commit | 7832cc727c2c6a9f4e533aa999d9901d629b6187 (patch) | |
tree | 94ba474993d629dd277c7a743d84c544cc4600f9 /test | |
parent | cd5a24aa38894f5e38f265a6ea121e3aa7b67d1a (diff) | |
download | xorg-lib-libxkbcommon-7832cc727c2c6a9f4e533aa999d9901d629b6187.tar.gz |
test: xkeyboard-config: flake8 fixes
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'test')
-rwxr-xr-x | test/xkeyboard-config-test.py.in | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/xkeyboard-config-test.py.in b/test/xkeyboard-config-test.py.in index c271f5a..e965858 100755 --- a/test/xkeyboard-config-test.py.in +++ b/test/xkeyboard-config-test.py.in @@ -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 |