From 33128d75f22a7c029df17b1ee595865933551469 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Sun, 11 Oct 2020 21:37:25 +0200 Subject: [PATCH] =?UTF-8?q?Use=20list.extend(=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/syntax-tests/create_highlighted_versions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/syntax-tests/create_highlighted_versions.py b/tests/syntax-tests/create_highlighted_versions.py index 70e5048a..a8d0bc78 100755 --- a/tests/syntax-tests/create_highlighted_versions.py +++ b/tests/syntax-tests/create_highlighted_versions.py @@ -30,9 +30,10 @@ def get_options(source): options_file = path.join(source_dirpath, "bat_options") try: with open(options_file, "r") as f: - options += list(map(lambda x: x.rstrip(), f.readlines())) + options.extend(map(lambda x: x.rstrip(), f.readlines())) except FileNotFoundError: pass + return options