Patchwork D1642: py3: handle keyword arguments correctly in sslutil.py

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 2:51 a.m.
Message ID <b3036dc0b2edcb33cc33df549d618749@localhost.localdomain>
Download mbox | patch
Permalink /patch/26186/
State Not Applicable
Headers show

Comments

phabricator - Dec. 10, 2017, 2:51 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGc8ecd96cc357: py3: handle keyword arguments correctly in sslutil.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1642?vs=4321&id=4333

REVISION DETAIL
  https://phab.mercurial-scm.org/D1642

AFFECTED FILES
  mercurial/sslutil.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/sslutil.py b/mercurial/sslutil.py
--- a/mercurial/sslutil.py
+++ b/mercurial/sslutil.py
@@ -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)