changeset 46178:e3d595b7fbaa

pycompat: fix typos Differential Revision: https://phab.mercurial-scm.org/D9662
author Joerg Sonnenberger <joerg@bec.de>
date Mon, 28 Dec 2020 01:40:08 +0100
parents 0c320e6032f1
children 11f3d4458e3a
files mercurial/pycompat.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/pycompat.py	Sat Dec 19 12:07:24 2020 +0900
+++ b/mercurial/pycompat.py	Mon Dec 28 01:40:08 2020 +0100
@@ -335,7 +335,7 @@
     def strkwargs(dic):
         """
         Converts the keys of a python dictonary to str i.e. unicodes so that
-        they can be passed as keyword arguments as dictonaries with bytes keys
+        they can be passed as keyword arguments as dictionaries with bytes keys
         can't be passed as keyword arguments to functions on Python 3.
         """
         dic = {k.decode('latin-1'): v for k, v in dic.items()}
@@ -343,7 +343,7 @@
 
     def byteskwargs(dic):
         """
-        Converts keys of python dictonaries to bytes as they were converted to
+        Converts keys of python dictionaries to bytes as they were converted to
         str to pass that dictonary as a keyword argument on Python 3.
         """
         dic = {k.encode('latin-1'): v for k, v in dic.items()}