laforge has submitted this change. (
https://gerrit.osmocom.org/c/pysim/+/27104 )
Change subject: avoid pylint E0611: No name 'strxor' in module
'Crypto.Util.strxor'
......................................................................
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
---
M pySim/utils.py
1 file changed, 1 insertion(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/pySim/utils.py b/pySim/utils.py
index 1806d0d..0a9be86 100644
--- a/pySim/utils.py
+++ b/pySim/utils.py
@@ -567,6 +567,7 @@
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
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/27104
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Iea89e758782a569be953d19892028f083a92c2f1
Gerrit-Change-Number: 27104
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged