From bf82cebb7b4d948e6f938782ab2b082951d1fed2 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 9 Feb 2022 16:36:53 +0100 Subject: [PATCH] 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 So let's suppress the related pylint error. Change-Id: Iea89e758782a569be953d19892028f083a92c2f1 --- pySim/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pySim/utils.py b/pySim/utils.py index 1806d0df..0a9be867 100644 --- a/pySim/utils.py +++ b/pySim/utils.py @@ -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 """ from Crypto.Cipher import AES + # pylint: disable=no-name-in-module from Crypto.Util.strxor import strxor from pySim.utils import b2h