How to delete section in config.conf?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to delete section in config.conf?

Development mailing list
Hi,
For my addon, I need to delete a section in config.conf.
Iuse "del" method but Iget an error:
AttributeError: __delitem__
My code's sample is:
        config.conf["mySection"] = {}
        if "mySection" in config.conf:
            del config.conf["mySection"]

How can I do it?
Thanks for your help.
Best regards.
Paul.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to delete section in config.conf?

Development mailing list
Is there anybody?
Cheers
Paul.

Le 16/06/2017 12:20, Paulber19 via Nvda-devel a écrit :
Hi,
For my addon, I need to delete a section in config.conf.
Iuse "del" method but Iget an error:
AttributeError: __delitem__
My code's sample is:
        config.conf["mySection"] = {}
        if "mySection" in config.conf:
            del config.conf["mySection"]

How can I do it?
Thanks for your help.
Best regards.
Paul.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nvda-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nvda-devel