mercurial/url.py
changeset 44452 9d2b2df2c2ba
parent 43506 9f70512ae2cf
child 44641 e74af49aa3c9
--- a/mercurial/url.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/mercurial/url.py	Fri Mar 06 13:27:41 2020 -0500
@@ -224,13 +224,11 @@
 
 
 def _generic_proxytunnel(self):
-    proxyheaders = dict(
-        [
-            (x, self.headers[x])
-            for x in self.headers
-            if x.lower().startswith('proxy-')
-        ]
-    )
+    proxyheaders = {
+        x: self.headers[x]
+        for x in self.headers
+        if x.lower().startswith('proxy-')
+    }
     self.send(b'CONNECT %s HTTP/1.0\r\n' % self.realhostport)
     for header in pycompat.iteritems(proxyheaders):
         self.send(b'%s: %s\r\n' % header)