bpo-39353: binascii.crc_hqx() is no longer deprecated (GH-18276)

The binascii.crc_hqx() function is no longer deprecated.
This commit is contained in:
Victor Stinner 2020-01-30 09:56:40 +01:00 committed by GitHub
parent 2bf127d97b
commit c38fd0df2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 15 deletions

View file

@ -200,8 +200,7 @@ class BinHex:
self._writecrc()
def _write(self, data):
with _ignore_deprecation_warning():
self.crc = binascii.crc_hqx(data, self.crc)
self.crc = binascii.crc_hqx(data, self.crc)
self.ofp.write(data)
def _writecrc(self):
@ -396,8 +395,7 @@ class HexBin:
def _read(self, len):
data = self.ifp.read(len)
with _ignore_deprecation_warning():
self.crc = binascii.crc_hqx(data, self.crc)
self.crc = binascii.crc_hqx(data, self.crc)
return data
def _checkcrc(self):