summaryrefslogtreecommitdiff
path: root/filter_plugins/ini.py
diff options
context:
space:
mode:
Diffstat (limited to 'filter_plugins/ini.py')
-rw-r--r--filter_plugins/ini.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter_plugins/ini.py b/filter_plugins/ini.py
index f4f596bc..89f553cf 100644
--- a/filter_plugins/ini.py
+++ b/filter_plugins/ini.py
@@ -24,7 +24,7 @@ def from_ini(o):
raise AnsibleFilterError('from_ini requires a string, got %s' % type(o))
parser = configparser.RawConfigParser()
parser.optionxform = partial(to_text, errors='surrogate_or_strict')
- parser.readfp(StringIO(o))
+ parser.read_file(StringIO(o))
d = dict(parser._sections)
for k in d:
d[k] = dict(d[k])