Skip to content

Commit 4791e94

Browse files
Merge pull request splunk#193 from ruxandraburtica/develop
Using basestring instead of str so that unicode values are also accepted.
2 parents 85f1a90 + d1e16bf commit 4791e94

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, str):
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)