mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-29 13:12:35 +03:00
pylint: sysmocom_sja2.py
pySim/sysmocom_sja2.py:20:0: W0401: Wildcard import pytlv.TLV (wildcard-import) pySim/sysmocom_sja2.py:27:0: W0401: Wildcard import construct (wildcard-import) pySim/sysmocom_sja2.py:21:0: C0411: standard import "from struct import pack, unpack" should be placed before "from pytlv.TLV import *" (wrong-import-order) pySim/sysmocom_sja2.py:27:0: C0411: third party import "from construct import *" should be placed before "from pySim.utils import *" (wrong-import-order) pySim/sysmocom_sja2.py:21:0: W0611: Unused pack imported from struct (unused-import) pySim/sysmocom_sja2.py:25:0: W0611: Unused CardProfileUICC imported from pySim.ts_102_221 (unused-import) Change-Id: I0e5b5c6f3179f9710464af4cba91d682412b8a09
This commit is contained in:
@@ -17,14 +17,15 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from pytlv.TLV import *
|
from struct import unpack
|
||||||
from struct import pack, unpack
|
from construct import FlagsEnum, Byte, Struct, Int8ub, Bytes, Mapping, Enum, Padding, BitsInteger
|
||||||
|
from construct import Bit, this, Int32ub, Int16ub, Nibble, BytesInteger, GreedyRange
|
||||||
|
from construct import Optional as COptional
|
||||||
|
|
||||||
from pySim.utils import *
|
from pySim.utils import *
|
||||||
from pySim.filesystem import *
|
from pySim.filesystem import *
|
||||||
from pySim.runtime import RuntimeState
|
from pySim.runtime import RuntimeState
|
||||||
from pySim.ts_102_221 import CardProfileUICC
|
|
||||||
from pySim.construct import *
|
from pySim.construct import *
|
||||||
from construct import *
|
|
||||||
import pySim
|
import pySim
|
||||||
|
|
||||||
key_type2str = {
|
key_type2str = {
|
||||||
@@ -70,7 +71,7 @@ class EF_PIN(TransparentEF):
|
|||||||
'attempts_remaining'/Int8ub,
|
'attempts_remaining'/Int8ub,
|
||||||
'maximum_attempts'/Int8ub,
|
'maximum_attempts'/Int8ub,
|
||||||
'pin'/HexAdapter(Rpad(Bytes(8))),
|
'pin'/HexAdapter(Rpad(Bytes(8))),
|
||||||
'puk'/Optional(PukStruct))
|
'puk'/COptional(PukStruct))
|
||||||
|
|
||||||
|
|
||||||
class EF_MILENAGE_CFG(TransparentEF):
|
class EF_MILENAGE_CFG(TransparentEF):
|
||||||
|
|||||||
Reference in New Issue
Block a user