title: ConfigParser.MissingSectionHeaderError when parsing rsyncd config file with global options
body: <p>A configuration file generally needs section headers for each section. In <a href="http://linux.die.net/man/5/rsyncd.conf" rel="noreferrer">rsyncd config</a> files a global section need not explicitly have a section header. Example of an rsyncd.conf file:</p>
  
  <p>[rsyncd.conf]</p>
  
  <pre><code># GLOBAL OPTIONS
  
  path            = /data/ftp
  pid file        = /var/run/rsyncdpid.pid
  syslog facility = local3
  uid             = rsync
  gid             = rsync
  read only       = true
  use chroot      = true
  
  # MODULE OPTIONS
  [mod1]
  ...
  </code></pre>
  
  <p>How to parse such config files using python <code>ConfigParser</code>?
  Doing the following gives an erorr:</p>
  
  <pre><code>&gt;&gt;&gt; import ConfigParser
  &gt;&gt;&gt; cp = ConfigParser.ConfigParser()
  &gt;&gt;&gt; cp.read("rsyncd.conf")
  
  # Error: ConfigParser.MissingSectionHeaderError: File contains no section headers.
  </code></pre>