Skip to content

Commit 391439e

Browse files
committed
Encode in json only dicts.
1 parent c790c1e commit 391439e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benedict/serializers/ini.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def encode(self, d, **kwargs):
7171
section = key
7272
parser.add_section(section)
7373
for option_key, option_value in value.items():
74-
if type_util.is_collection(option_value):
74+
if type_util.is_dict(option_value):
7575
parser.set(section, option_key, self._json.encode(option_value))
7676
else:
7777
parser.set(section, option_key, option_value)

0 commit comments

Comments
 (0)