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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content