Skip to content

Commit ef7546f

Browse files
committed
Add a BC fix for basestring
1 parent 4129492 commit ef7546f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

json_logging/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@
3636
'props',
3737
]
3838

39+
try:
40+
basestring
41+
except NameError:
42+
basestring = str
43+
3944
if sys.version_info < (3, 0):
4045
EASY_TYPES = (basestring, bool, dict, float, int, list, type(None))
4146
else:

0 commit comments

Comments
 (0)