changeset 11565 | 7546d4a272c8 |
parent 11469 | c37f35d7f2f5 |
child 11566 | 4d11fde55cc5 |
--- a/mercurial/util.py Wed Jul 14 22:58:29 2010 -0300 +++ b/mercurial/util.py Wed Jul 14 22:59:43 2010 -0300 @@ -40,7 +40,9 @@ def fakebuffer(sliceable, offset=0): return sliceable[offset:] -if not hasattr(__builtin__, 'buffer'): +try: + buffer +except NameError: __builtin__.buffer = fakebuffer import subprocess