Python subprocess check_output and call yielding different results for the same arguments to pwgen
<p>I'm using the subprocess "call" method to execute the pwgen utility to create a 12 character password.  When I use check_output I get a different result for the same arguments.  Here's a working code snippet:</p>

<pre><code>import tempfile
import subprocess
import os

f = tempfile.NamedTemporaryFile(delete=False)
f.write('random data\n')
f.close()
subprocess.call(['/usr/bin/pwgen', "-H", f.name, "12", "1"])
print subprocess.check_output(['/usr/bin/pwgen', "-H", f.name, "12", "1"])
os.unlink(f.name)
</code></pre>

<p>Sample output is:</p>

<blockquote>
  <p>rioH7IeSu6th<br>
  giyahvoopehi</p>
</blockquote>

<p>I would expect the result to be the same in both cases.  Does anyone know what I need to do to get the output of "check_output" and "call" to match?</p>
