[Git][reproducible-builds/diffoscope][master] Replace "token" with anonymous variable "x" to remove extra lines.

Chris Lamb (@lamby) gitlab at salsa.debian.org
Thu Dec 9 17:17:26 UTC 2021



Chris Lamb pushed to branch master at Reproducible Builds / diffoscope


Commits:
4837c43a by Chris Lamb at 2021-12-09T09:17:04-08:00
Replace "token" with anonymous variable "x" to remove extra lines.

- - - - -


1 changed file:

- tests/test_source.py


Changes:

=====================================
tests/test_source.py
=====================================
@@ -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()
     ]
 
 



View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/4837c43ad921ecb270fe827a78e9cbca8578ce83

-- 
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/4837c43ad921ecb270fe827a78e9cbca8578ce83
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20211209/5d90af36/attachment.htm>


More information about the rb-commits mailing list