From: Martin Taibr Date: Fri, 20 Oct 2017 13:09:37 +0000 (+0200) Subject: explicit is better than implicit..... so maybe fix your stdlib... especially given... X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic.wiki.git;a=commitdiff_plain;h=597a3a54e9500faf54d0a66f18b9ab095500eb0b explicit is better than implicit..... so maybe fix your stdlib... especially given you can iterate through lines in a file this way --- 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: