Skip to content
Snippets Groups Projects
Commit 4837c43a authored by Chris Lamb's avatar Chris Lamb :eyes:
Browse files

Replace "token" with anonymous variable "x" to remove extra lines.

parent 3fb091b6
No related branches found
No related tags found
No related merge requests found
Pipeline #325760 passed
......@@ -252,9 +252,7 @@ def black_version():
# black --version format changed starting in 21.11b0. Returning the first
# token starting with a decimal digit, since its ordinal position may vary.
return [
token
for token in out.strip().decode("utf-8").split(" ")
if token[0].isdigit()
x for x in out.strip().decode("utf-8").split(" ") if x[0].isdigit()
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment