Skip to content

Commit

Permalink
fix: TABConfigParser.remove_section() is not working read()
Browse files Browse the repository at this point in the history
TABConfigParser.remove_section() uses interval variable `_proxies`, which is also being deleted if you try to remove some section. Our implementation of `_read` method does not set that `_proxies` variable anyhow.
  • Loading branch information
artemrys authored and Artem Rys committed Jul 19, 2021
1 parent 5e2ab8a commit 8c82a45
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ def _read(self, fp, fpname):
cursect = self._dict()
cursect["__name__"] = sectname
self._sections[sectname] = cursect
self._proxies[sectname] = configparser.SectionProxy(
self, sectname
)
# So sections can't start with a continuation line
optname = None
# no section header in the file?
Expand Down

0 comments on commit 8c82a45

Please sign in to comment.