mercurial/sslutil.py
changeset 30332 318a24b52eeb
parent 30228 b9f7b0c10027
child 30639 d524c88511a7
--- a/mercurial/sslutil.py	Thu Nov 03 17:31:14 2016 -0700
+++ b/mercurial/sslutil.py	Mon Oct 17 23:16:55 2016 +0200
@@ -638,7 +638,7 @@
                 # According to RFC 2818 the most specific Common Name must
                 # be used.
                 if key == 'commonName':
-                    # 'subject' entries are unicide.
+                    # 'subject' entries are unicode.
                     try:
                         value = value.encode('ascii')
                     except UnicodeEncodeError:
@@ -764,7 +764,7 @@
     return None
 
 def validatesocket(sock):
-    """Validate a socket meets security requiremnets.
+    """Validate a socket meets security requirements.
 
     The passed socket must have been created with ``wrapsocket()``.
     """