8000 Add python3 support in handler.py · Claude59/fluent-logger-python@4f6f721 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f6f721

Browse files
committed
Add python3 support in handler.py
Not really a regression since previous code has this problem with unicode but comes from "Simplify check for string in record formating" commit.
1 parent 6c78609 commit 4f6f721

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fluent/handler.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
except ImportError:
99
import json
1010

11+
try:
12+
basestring
13+
except NameError:
14+
basestring = (str, bytes)
15+
1116
from fluent import sender
1217

1318

0 commit comments

Comments
 (0)
0