summaryrefslogtreecommitdiffstats
path: root/Lib/binhex.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-30 08:56:40 (GMT)
committerGitHub <noreply@github.com>2020-01-30 08:56:40 (GMT)
commitc38fd0df2b4cbc1cc906d8dfe23f63b67cd6965f (patch)
treebf4258c96731f8c0e1fbc525abd27514308300b2 /Lib/binhex.py
parent2bf127d97bd1d60ead7c20d429b0c61ef61fc554 (diff)
downloadcpython-c38fd0df2b4cbc1cc906d8dfe23f63b67cd6965f.zip
cpython-c38fd0df2b4cbc1cc906d8dfe23f63b67cd6965f.tar.gz
cpython-c38fd0df2b4cbc1cc906d8dfe23f63b67cd6965f.tar.bz2
bpo-39353: binascii.crc_hqx() is no longer deprecated (GH-18276)
The binascii.crc_hqx() function is no longer deprecated.
Diffstat (limited to 'Lib/binhex.py')
-rw-r--r--Lib/binhex.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/binhex.py b/Lib/binhex.py
index 6ff38dd..9559f46 100644
--- a/Lib/binhex.py
+++ b/Lib/binhex.py
@@ -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):