Skip to content

Commit 9ef371f

Browse files
committed
Update six.py
- replaced 'strict' error checking with 'replace'
1 parent e1abedc commit 9ef371f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/six.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ def ensure_binary(s, encoding='utf-8', errors='strict'):
898898
raise TypeError("not expecting type '%s'" % type(s))
899899

900900

901-
def ensure_str(s, encoding='utf-8', errors='strict'):
901+
def ensure_str(s, encoding='utf-8', errors='replace'):
902902
"""Coerce *s* to `str`.
903903
904904
For Python 2:

0 commit comments

Comments
 (0)