From 660615800caab3fbee0e6b2e9f6ce8ebdc3df41f Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Tue, 9 Mar 2021 21:57:57 +0100 Subject: [PATCH] filesystem: add comment to inform about checks in add_file() The method add_file of class CardDF does some constraint checking to the basic file parameters (e.g. fid). Since one might also expect those checks in the superclass CardFile lets leave a comment to make the code better understandable. Change-Id: Iebae28909fe6aade3bd4024112a222819572d735 Related: OS#4963 --- pySim/filesystem.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pySim/filesystem.py b/pySim/filesystem.py index 4c84f66e..f412d73b 100644 --- a/pySim/filesystem.py +++ b/pySim/filesystem.py @@ -55,6 +55,10 @@ class CardFile(object): self.parent.add_file(self) self.shell_commands = [] + # Note: the basic properties (fid, name, ect.) are verified when + # the file is attached to a parent file. See method add_file() in + # class Card DF + def __str__(self): if self.name: return self.name