From fe8a74490a9ce509039f85c43f99c4b8adce28ca Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 10 Apr 2021 11:51:54 +0200 Subject: [PATCH] pySim/filesystem: Fix more Python 3.5 compatibility issues Change-Id: I277e86a0e6b16d53d2b5b48b74915ac9a48a4211 --- pySim/filesystem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pySim/filesystem.py b/pySim/filesystem.py index 097661df..d2b84431 100644 --- a/pySim/filesystem.py +++ b/pySim/filesystem.py @@ -336,7 +336,7 @@ class CardADF(CardDF): def __init__(self, aid:str, **kwargs): super().__init__(**kwargs) # 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 mf = self.get_mf() if mf: @@ -856,7 +856,7 @@ class RuntimeState(object): """ self.mf = CardMF() self.card = card - self.selected_file:CardDF = self.mf + self.selected_file = self.mf # type: CardDF self.profile = profile # add application ADFs + MF-files from profile apps = self._match_applications()