avoid pylint E0611: No name 'strxor' in module 'Crypto.Util.strxor'

At least on Debian 10 and unstable, I'm getting this error for pylint:
************* Module pySim.utils
pySim/utils.py:570:1: E0611: No name 'strxor' in module 'Crypto.Util.strxor' (no-name-in-module)

despite it clearly existing:

>>> import Crypto.Util.strxor
>>> Crypto.Util.strxor.strxor
<built-in function strxor>

So let's suppress the related pylint error.

Change-Id: Iea89e758782a569be953d19892028f083a92c2f1
This commit is contained in:
Harald Welte
2022-02-09 16:36:53 +01:00
parent f03894aa65
commit bf82cebb7b

View File

@@ -567,6 +567,7 @@ def derive_milenage_opc(ki_hex:Hexstr, op_hex:Hexstr) -> Hexstr:
Run the milenage algorithm to calculate OPC from Ki and OP Run the milenage algorithm to calculate OPC from Ki and OP
""" """
from Crypto.Cipher import AES from Crypto.Cipher import AES
# pylint: disable=no-name-in-module
from Crypto.Util.strxor import strxor from Crypto.Util.strxor import strxor
from pySim.utils import b2h from pySim.utils import b2h