Skip to content

Commit d1e16bf

Browse files
committed
Using string_types for python3 compatibility.
1 parent 7d1331d commit d1e16bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def load_elem(element, nametable=None):
112112
if attrs is None: return name, value
113113
if value is None: return name, attrs
114114
# If value is simple, merge into attrs dict using special key
115-
if isinstance(value, basestring):
115+
if isinstance(value, six.string_types):
116116
attrs["$text"] = value
117117
return name, attrs
118118
# Both attrs & value are complex, so merge the two dicts, resolving collisions.

0 commit comments

Comments
 (0)