Skip to content

Commit e43a0a6

Browse files
committed
Use basestring instead of str, like in FluentHandler._add_dic
For consistency's sake.
1 parent f5e71dc commit e43a0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluent/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def format(self, record):
4747
def _structuring(self, data, msg):
4848
if isinstance(msg, dict):
4949
self._add_dic(data, msg)
50-
elif isinstance(msg, str):
50+
elif isinstance(msg, basestring):
5151
try:
5252
self._add_dic(data, json.loads(str(msg)))
5353
except (ValueError, json.JSONDecodeError):

0 commit comments

Comments
 (0)