title: Eliminating spaces between equal signs in ConfigParser - Python
body: <p>I got an excellent answer from <a href="https://stackoverflow.com/questions/33425339/combine-template-and-configparser/33425642#33425642">this</a> post, that covered everything I wanted.</p>
  
  <pre><code>[Box]
  box.active = false
  resolution_tracker.active = true
  box.api_key = 
  box.api_secret = 
  box.job_interval = 480
  box.max_attempts = 6
  box.users = 
  
  [Google]
  google.active = true
  google.job_interval = 480
  google.users = &lt;useremail&gt;
  google.key_file_name = &lt;key_file&gt;
  google.service_account_id = &lt;account_id&gt;
  </code></pre>
  
  <p>However, the question still lingering around is how to remove the spaces in the equal assignments. For example:</p>
  
  <pre><code>box.active = false
  </code></pre>
  
  <p>Must be</p>
  
  <pre><code>box.active=false
  </code></pre>
  
  <p>That's it, I want to remove the white spaces between the <code>=</code>. The <code>.properties</code> file is generated with <code>ConfigParser</code> in Python, but it seems those white spaces are creating problems. Of course I can use other things in order to remove those white spaces, but is there a more elegant solution using <code>StringIO</code>, <code>ConfigParser</code> or any other of the <code>Python</code> Libraries? </p>
  
  <p>** Edit **
  This question isn't a duplicate because we are trying to find an easier way to remove the white spaces around the <code>=</code> using the API, instead of rewriting the <code>ConfigParser</code> class.</p>