##// END OF EJS Templates
util: improved the check for the existence of the 'buffer' builtin...
Renato Cunha -
r11565:7546d4a2 default
parent child Browse files
Show More
@@ -40,7 +40,9 b' import __builtin__'
40
40
41 def fakebuffer(sliceable, offset=0):
41 def fakebuffer(sliceable, offset=0):
42 return sliceable[offset:]
42 return sliceable[offset:]
43 if not hasattr(__builtin__, 'buffer'):
43 try:
44 buffer
45 except NameError:
44 __builtin__.buffer = fakebuffer
46 __builtin__.buffer = fakebuffer
45
47
46 import subprocess
48 import subprocess
General Comments 0
You need to be logged in to leave comments. Login now