8000 Use basestring instead of str, like in FluentHandler._add_dic · panta/fluent-logger-python@130be83 · GitHub
[go: up one dir, main page]

Skip to content

Commit 130be83

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

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)
0