title: Why would shutil.copy() raise a permission exception when cp doesn't?
body: <p>shutil.copy() is raising a permissions error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "copy-test.py", line 3, in &lt;module&gt;
      shutil.copy('src/images/ajax-loader-000000-e3e3e3.gif', 'bin/styles/blacktie/images')
    File "/usr/lib/python2.7/shutil.py", line 118, in copy
      copymode(src, dst)
    File "/usr/lib/python2.7/shutil.py", line 91, in copymode
      os.chmod(dst, mode)
  OSError: [Errno 1] Operation not permitted: 'bin/styles/blacktie/images/ajax-loader-000000-e3e3e3.gif'
  </code></pre>
  
  <p>copy-test.py:</p>
  
  <pre><code>import shutil
  
  shutil.copy('src/images/ajax-loader-000000-e3e3e3.gif', 'bin/styles/blacktie/images')
  </code></pre>
  
  <p>I am running copy-test.py from the command line:</p>
  
  <pre><code>python copy-test.py
  </code></pre>
  
  <p>But running <code>cp</code> from the command line on the same file to the same destination doesn't cause an error. Why?</p>