mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
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:
parent
2bf127d97b
commit
c38fd0df2b
6 changed files with 3 additions and 15 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue