Have Python ConfigParser handle options without values?

Solution Unverified - Updated -

Issue

  • Python ConfigParser fails for options that do not have value.
  • ConfigParser is designed to require a value for each option.

Environment

  • Red Hat Enterprise Linux 6
    • python-2.6.6-29.el6_2.2
  • Red Hat Enterprise Linux 5
    • python-2.4.3-46.el5_8.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.