--- 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)