I have the following:

config = ConfigParser()
config.read('connections.cfg')
sections = config.sections()

How can I close the file opened with config.read?

In my case, as new sections/data are added to the config.cfg file, I update my wxtree widget. However, it only updates once, and I suspect it's because config.read leaves the file open.

And while we are at it, what is the main difference between ConfigParser and RawConfigParser?

Edit
Report