diff options
Diffstat (limited to 'simplejson/encoder.py')
-rw-r--r-- | simplejson/encoder.py | 6 |
1 files 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) |