Skip to content

Commit

Permalink
Add comment about json encoder back
Browse files Browse the repository at this point in the history
  • Loading branch information
maszyk99 committed Mar 13, 2024
1 parent e23fa4d commit a633d6f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions splunklib/searchcommands/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ def _write_record(self, record):
# We may be running under PyPy 2.5 which does not include the _json module
_iterencode_json = JSONEncoder(separators=(',', ':')).iterencode
else:
# Creating _iterencode_json this way yields a two-fold performance improvement on Python 2.7.9 and 2.7.10
from json.encoder import encode_basestring_ascii

@staticmethod
Expand Down

0 comments on commit a633d6f

Please sign in to comment.