From 597a3a54e9500faf54d0a66f18b9ab095500eb0b Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Fri, 20 Oct 2017 15:09:37 +0200 Subject: [PATCH] explicit is better than implicit..... so maybe fix your stdlib... especially given you can iterate through lines in a file this way --- assets/check-and-fix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/check-and-fix.py b/assets/check-and-fix.py index 0c76853..957eccb 100755 --- a/assets/check-and-fix.py +++ b/assets/check-and-fix.py @@ -31,7 +31,7 @@ def compile_regex(rgx: str): # regex (unlike re) supports non-constant length look-behinds return regex.compile( "".join( - [line.strip() for line in rgx])) + [line.strip() for line in rgx.split('\n')])) # examples: -- 2.39.2