##// END OF EJS Templates
wireprotoframing: remove Python 2 support code...
Gregory Szorc -
r49755:5ed68dc6 default
parent child Browse files
Show More
@@ -761,11 +761,6 b' class zlibdecoder(object):'
761 self._decompressor = zlib.decompressobj()
761 self._decompressor = zlib.decompressobj()
762
762
763 def decode(self, data):
763 def decode(self, data):
764 # Python 2's zlib module doesn't use the buffer protocol and can't
765 # handle all bytes-like types.
766 if not pycompat.ispy3 and isinstance(data, bytearray):
767 data = bytes(data)
768
769 return self._decompressor.decompress(data)
764 return self._decompressor.decompress(data)
770
765
771
766
General Comments 0
You need to be logged in to leave comments. Login now