Skip to content

Commit 2e991ef

Browse files
committed
Simplify check for string in record formating
1 parent e31e750 commit 2e991ef

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
@@ -45,7 +45,7 @@ def _structuring(self, data, msg):
4545

4646
def _add_dic(self, data, dic):
4747
for k, v in dic.items():
48-
if isinstance(k, str) or isinstance(k, unicode):
48+
if isinstance(k, basestring):
4949
data[str(k)] = v
5050

5151
class FluentHandler(logging.Handler):

0 commit comments

Comments
 (0)