title: configparser.ParsingError: Source contains parsing errors: 'my.ini'
body: <p>I am getting this error: <code>configparser.ParsingError: Source contains parsing errors: 'my.ini'</code>
  although I am getting uncommented-values printed on the terminal.</p>
  <p><strong><code>my.ini</code>:</strong></p>
  <pre><code>[my]
  # user
  root
  # passwd
  password
  </code></pre>
  <p>I read <a href="https://docs.python.org/library/configparser.html" rel="nofollow noreferrer">here</a> that <code>#</code> or <code>;</code> could be used for commenting. This is how I am doing it:</p>
  <pre><code>import configparser
  
  c = configparser.ConfigParser()
  c.read('my.ini')
  getval = c.items('my')
  </code></pre>