Change in pysim[master]: pySim/filesystem: Fix more Python 3.5 compatibility issues

laforge gerrit-no-reply at lists.osmocom.org
Sat Apr 10 22:12:56 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/23701 )

Change subject: pySim/filesystem: Fix more Python 3.5 compatibility issues
......................................................................

pySim/filesystem: Fix more Python 3.5 compatibility issues

Change-Id: I277e86a0e6b16d53d2b5b48b74915ac9a48a4211
---
M pySim/filesystem.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/pySim/filesystem.py b/pySim/filesystem.py
index 097661d..d2b8443 100644
--- a/pySim/filesystem.py
+++ b/pySim/filesystem.py
@@ -336,7 +336,7 @@
     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 @@
         """
         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()

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/23701
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I277e86a0e6b16d53d2b5b48b74915ac9a48a4211
Gerrit-Change-Number: 23701
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210410/dc9b0791/attachment.htm>


More information about the gerrit-log mailing list