diff mercurial/dispatch.py @ 52642:73ab542565e0

pyupgrade: run the `unpack_list_comprehension` fixer This probably doesn't matter much, but it reduces the noise when running the tool in the future.
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 05 Jan 2025 22:12:02 -0500
parents 24ee91ba9aa8
children 1ccbca64610a
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sun Jan 05 22:00:40 2025 -0500
+++ b/mercurial/dispatch.py	Sun Jan 05 22:12:02 2025 -0500
@@ -846,7 +846,7 @@
 
     for cfg in config:
         try:
-            name, value = [cfgelem.strip() for cfgelem in cfg.split(b'=', 1)]
+            name, value = (cfgelem.strip() for cfgelem in cfg.split(b'=', 1))
             section, name = name.split(b'.', 1)
             if not section or not name:
                 raise IndexError