summaryrefslogtreecommitdiff
path: root/simplejson
diff options
context:
space:
mode:
authorBob Ippolito <bob@redivi.com>2018-04-25 09:36:05 -0700
committerGitHub <noreply@github.com>2018-04-25 09:36:05 -0700
commit3e5e4420f7de79956c1ec2d909e994ab142c2930 (patch)
treea014a2f3ea6f3f361ab36d8114d1cb4cd2b7fc3f /simplejson
parent1c22a813294d98176decb516dcd5834a09f79c32 (diff)
downloadsimplejson-3e5e4420f7de79956c1ec2d909e994ab142c2930.tar.gz
fix comment typos
Diffstat (limited to 'simplejson')
-rw-r--r--simplejson/encoder.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/simplejson/encoder.py b/simplejson/encoder.py
index fa45f50..2cf5e3a 100644
--- a/simplejson/encoder.py
+++ b/simplejson/encoder.py
@@ -43,15 +43,15 @@ def encode_basestring(s, _PY3=PY3, _q=u'"'):
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)