Skip to content

Commit 4b3b0d2

Browse files
committed
Use basestring instead of str, like in FluentHandler._add_dic
For consistency's sake.
1 parent 9cf49b1 commit 4b3b0d2

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
@@ -52,7 +52,7 @@ def format(self, record):
5252
def _structuring(self, data, msg):
5353
if isinstance(msg, dict):
5454
self._add_dic(data, msg)
55-
elif isinstance(msg, str):
55+
elif isinstance(msg, basestring):
5656
try:
5757
self._add_dic(data, json.loads(str(msg)))
5858
except ValueError:

0 commit comments

Comments
 (0)