diff --git a/pySim-prog.py b/pySim-prog.py index 922ca864..3b69bb32 100755 --- a/pySim-prog.py +++ b/pySim-prog.py @@ -741,9 +741,9 @@ if __name__ == '__main__': init_batch(opts) if opts.card_handler: - ch = card_handler_auto(sl, opts.card_handler) + ch = CardHandlerAuto(sl, opts.card_handler) else: - ch = card_handler(sl) + ch = CardHandler(sl) # Iterate first = True diff --git a/pySim-shell.py b/pySim-shell.py index 7977ff56..5644466f 100755 --- a/pySim-shell.py +++ b/pySim-shell.py @@ -40,7 +40,7 @@ from pySim.transport import init_reader, ApduTracer, argparse_add_reader_args from pySim.cards import card_detect, SimCard from pySim.utils import h2b, swap_nibbles, rpad, b2h, h2s, JsonEncoder, bertlv_parse_one from pySim.utils import dec_st, sanitize_pin_adm, tabulate_str_list, is_hex, boxed_heading_str -from pySim.card_handler import card_handler +from pySim.card_handler import CardHandler from pySim.filesystem import CardMF, RuntimeState, CardDF, CardADF from pySim.ts_51_011 import CardProfileSIM, DF_TELECOM, DF_GSM @@ -484,7 +484,7 @@ if __name__ == '__main__': sl.wait_for_card(); - card_handler = card_handler(sl) + card_handler = CardHandler(sl) card = card_detect("auto", scc) if card is None: diff --git a/pySim/card_handler.py b/pySim/card_handler.py index 9beab512..ef1b0713 100644 --- a/pySim/card_handler.py +++ b/pySim/card_handler.py @@ -27,7 +27,7 @@ import sys import yaml # Manual card handler: User is prompted to insert/remove card from the reader. -class card_handler: +class CardHandler: sl = None @@ -47,7 +47,7 @@ class card_handler: print("") # Automatic card handler: A machine is used to handle the cards. -class card_handler_auto: +class CardHandlerAuto: sl = None cmds = None