title: Inline comments for ConfigParser
body: <p>I have stuff like this in an .ini file</p>
  
  <pre><code>[General]
  verbosity = 3   ; inline comment
  
  [Valid Area Codes]
  ; Input records will be checked to make sure they begin with one of the area 
  ; codes listed below.  
  
  02    ; Central East New South Wales &amp; Australian Capital Territory
  03    ; South East Victoria &amp; Tasmania
  ;04    ; Mobile Telephones Australia-wide
  07    ; North East Queensland
  08    ; Central &amp; West Western Australia, South Australia &amp; Northern Territory
  </code></pre>
  
  <p>However I have the problem that inline comments are working in the <code>key = value</code> line, but not in the <code>key</code> with no value lines.  Here is how I am creating my ConfigParser object:</p>
  
  <pre><code>&gt;&gt;&gt; import ConfigParser
  &gt;&gt;&gt; c = ConfigParser.SafeConfigParser(allow_no_value=True)
  &gt;&gt;&gt; c.read('example.ini')
  ['example.ini']
  &gt;&gt;&gt; c.get('General', 'verbosity')
  '3'
  &gt;&gt;&gt; c.options('General')
  ['verbosity']
  &gt;&gt;&gt; c.options('Valid Area Codes')
  ['02    ; central east new south wales &amp; australian capital territory', '03    ; south east victoria &amp; tasmania', '07    ; north east queensland', '08    ; central &amp; west western australia, south australia &amp; northern territory']
  </code></pre>
  
  <p>How can I setup the config parser so that inline comments work for both cases?</p>