From 831764b485060d11f903e050904d53ac42337d16 Mon Sep 17 00:00:00 2001 From: Bob Ippolito Date: Wed, 25 Apr 2018 09:36:42 -0700 Subject: Fix the other comment typos --- simplejson/encoder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/simplejson/encoder.py b/simplejson/encoder.py index 2cf5e3a..7ea172e 100644 --- a/simplejson/encoder.py +++ b/simplejson/encoder.py @@ -70,15 +70,15 @@ def py_encode_basestring_ascii(s, _PY3=PY3): if isinstance(s, bytes): s = str(s, 'utf-8') elif type(s) is not str: - # convetr an str subclass instance to exact str + # convert an str subclass instance to exact str # raise a TypeError otherwise s = str.__str__(s) else: if isinstance(s, str) and HAS_UTF8.search(s) is not None: s = unicode(s, 'utf-8') elif type(s) not in (str, unicode): - # convetr an str subclass instance to exact str - # convetr a unicode subclass instance to exact unicode + # convert an str subclass instance to exact str + # convert a unicode subclass instance to exact unicode # raise a TypeError otherwise if isinstance(s, str): s = str.__str__(s) -- cgit v1.2.1