mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-26 15:28:35 +03:00
pySim/filesystem: Fix more Python 3.5 compatibility issues
Change-Id: I277e86a0e6b16d53d2b5b48b74915ac9a48a4211
This commit is contained in:
@@ -336,7 +336,7 @@ class CardADF(CardDF):
|
|||||||
def __init__(self, aid:str, **kwargs):
|
def __init__(self, aid:str, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(**kwargs)
|
||||||
# reference to CardApplication may be set from CardApplication constructor
|
# reference to CardApplication may be set from CardApplication constructor
|
||||||
self.application:Optional[CardApplication] = None
|
self.application = None # type: Optional[CardApplication]
|
||||||
self.aid = aid # Application Identifier
|
self.aid = aid # Application Identifier
|
||||||
mf = self.get_mf()
|
mf = self.get_mf()
|
||||||
if mf:
|
if mf:
|
||||||
@@ -856,7 +856,7 @@ class RuntimeState(object):
|
|||||||
"""
|
"""
|
||||||
self.mf = CardMF()
|
self.mf = CardMF()
|
||||||
self.card = card
|
self.card = card
|
||||||
self.selected_file:CardDF = self.mf
|
self.selected_file = self.mf # type: CardDF
|
||||||
self.profile = profile
|
self.profile = profile
|
||||||
# add application ADFs + MF-files from profile
|
# add application ADFs + MF-files from profile
|
||||||
apps = self._match_applications()
|
apps = self._match_applications()
|
||||||
|
|||||||
Reference in New Issue
Block a user