py3: handle keyword arguments correctly in sslutil.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 10 Dec 2017 04:48:59 +0530
changeset 35369 c8ecd96cc357
parent 35368 93c4958d987c
child 35370 c5853c9a6545
py3: handle keyword arguments correctly in sslutil.py Differential Revision: https://phab.mercurial-scm.org/D1642
mercurial/sslutil.py
--- a/mercurial/sslutil.py	Sun Dec 10 04:48:24 2017 +0530
+++ b/mercurial/sslutil.py	Sun Dec 10 04:48:59 2017 +0530
@@ -96,13 +96,13 @@
             # in this legacy code since we don't support SNI.
 
             args = {
-                'keyfile': self._keyfile,
-                'certfile': self._certfile,
-                'server_side': server_side,
-                'cert_reqs': self.verify_mode,
-                'ssl_version': self.protocol,
-                'ca_certs': self._cacerts,
-                'ciphers': self._ciphers,
+                r'keyfile': self._keyfile,
+                r'certfile': self._certfile,
+                r'server_side': server_side,
+                r'cert_reqs': self.verify_mode,
+                r'ssl_version': self.protocol,
+                r'ca_certs': self._cacerts,
+                r'ciphers': self._ciphers,
             }
 
             return ssl.wrap_socket(socket, **args)