From: Zbigniew Jędrzejewski-Szmek Date: Fri, 18 Jun 2021 13:42:07 +0000 (+0200) Subject: mkosi: adjust comment X-Git-Tag: v10~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F744%2Fhead;p=thirdparty%2Fmkosi.git mkosi: adjust comment > This comment is outdated, since we don't use the csv module anywhere. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index bd6b7a3a4..94299899a 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -4277,7 +4277,7 @@ class ListAction(argparse.Action): if self.delimiter == "," and values.startswith("[") and values.endswith("]"): values = values[1:-1] - # Make sure delimiters between quotes are ignored by using the csv module. + # Make sure delimiters between quotes are ignored. # Inspired by https://stackoverflow.com/a/2787979. values = [x.strip() for x in re.split(f"""{self.delimiter}(?=(?:[^'"]|'[^']*'|"[^"]*")*$)""", values) if x]