diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2021-03-10 21:56:47 +0100 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2021-03-19 17:48:49 +0100 |
commit | d51d8b55753724b6f97650a92709f1e6ecf027d6 (patch) | |
tree | 8a94ace0d963669f6c0eab6ecc9143fc0a43480c | |
parent | 660615800caab3fbee0e6b2e9f6ce8ebdc3df41f (diff) |
filesystem: drop __main__ from filesystem.py
The __main__ function in filesystem.py seems to be some experimental
testcode from the very beginning of pySim-shell. Lets drop it.
Change-Id: I34f459469dfc45711ad0928c83184d7f99e0f5e3
Related: OS#4963
-rw-r--r-- | pySim/filesystem.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/pySim/filesystem.py b/pySim/filesystem.py index f412d73..d468808 100644 --- a/pySim/filesystem.py +++ b/pySim/filesystem.py @@ -717,21 +717,3 @@ class CardProfile(object): """Interpret a given status word within the profile. Returns tuple of two strings""" return interpret_sw(self.sw, sw) - - -###################################################################### - -if __name__ == '__main__': - mf = CardMF() - - adf_usim = ADF('a0000000871002', name='ADF_USIM') - mf.add_application(adf_usim) - df_pb = CardDF('5f3a', name='DF.PHONEBOOK') - adf_usim.add_file(df_pb) - adf_usim.add_file(TransparentEF('6f05', name='EF.LI', size={2,16})) - adf_usim.add_file(TransparentEF('6f07', name='EF.IMSI', size={9,9})) - - rss = RuntimeState(mf, None) - - interp = code.InteractiveConsole(locals={'mf':mf, 'rss':rss}) - interp.interact() |