##// END OF EJS Templates
bundle1: display server abort hint during unbundle...
bundle1: display server abort hint during unbundle The code was printing the abort message but not the hint. This is now fixed.

File last commit:

r30895:c32454d6 default
r30910:accaa04f stable
Show More
common.py
15 lines | 453 B | text/x-python | PythonLexer
Gregory Szorc
zstd: vendor python-zstandard 0.5.0...
r30435 import io
class OpCountingBytesIO(io.BytesIO):
def __init__(self, *args, **kwargs):
self._read_count = 0
self._write_count = 0
return super(OpCountingBytesIO, self).__init__(*args, **kwargs)
def read(self, *args):
self._read_count += 1
return super(OpCountingBytesIO, self).read(*args)
def write(self, data):
self._write_count += 1
return super(OpCountingBytesIO, self).write(data)