title: how to fix "AttributeError: 'module' object has no attribute 'set_binary' "?
body: <p>i compiled mercurial successfully as follows:
  ...</p>
  
  <pre><code>copying build/scripts-2.7/hg -&gt; /usr/local/bin
  changing mode of /usr/local/bin/hg to 755
  running install_egg_info
  Writing /usr/local/lib/python2.7/site-packages/mercurial-2.8.1-py2.7.egg-info
  as3:~/mercurial-2.8.1# cd ~
  as3:~# hg clone http://hg.cat-v.org/werc/
  Traceback (most recent call last):
  File "/usr/bin/hg", line 25, in &lt;module&gt;
  mercurial.util.set_binary(fp)
          File "/usr/local/lib/python2.7/site-packages/mercurial/demandimport.py", line 103, in __getattribute__
  return getattr(self._module, attr)
  AttributeError: 'module' object has no attribute 'set_binary'
  as3:~#
  </code></pre>
  
  <p>how to fix it?tks.
  my python version:2.7.6</p>