title: compress level of python gzip module not working
body: <p>I was trying to write data into a compressed file using the python gzip module. But the module does not seem to accept the level of compression</p>
  
  <p>I followed the syntax specified in the official Python documentation on <a href="http://docs.python.org/2/library/gzip.html" rel="noreferrer">gzip</a></p>
  
  <p>Here is a sample snippet of code, please correct me if I am wrong</p>
  
  <pre><code>import gzip
  fd = gzip.GzipFile(filename = "temp", mode = "w", compresslevel = 6)
  fd.write("some text")
  </code></pre>
  
  <p>When I run the file command on the file temp I always get the output as "max compression" even though it is not in this case</p>
  
  <pre><code>file temp 
  temp: gzip compressed data, was "temp", last modified: Tue Jul 30 23:12:29 2013, max compression
  </code></pre>