From 168f4fd434622949074f81504d268916f662f3b0 Mon Sep 17 00:00:00 2001 From: oepen Date: Mon, 1 Aug 2011 10:52:37 +0000 Subject: [PATCH] Bugfix: Missing self. before reference to content dictionary git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@472 96b47cad-a561-4643-ad3b-153ac7d7599c --- .../src/vpicc/virtualsmartcard/SmartcardFilesystem.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py b/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py index 3988d9d..0270a7c 100644 --- a/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py +++ b/virtualsmartcard/src/vpicc/virtualsmartcard/SmartcardFilesystem.py @@ -436,13 +436,13 @@ class DF(File): # {{{ """ x.__delitem__(key) <==> del x.content[key] """ - del content[key] + del self.content[key] def __contains__(self, item): """ x.__contains__(item) <==> item in x.content """ - return item in content + return item in self.content def append(self, file): """Appends 'file' to the content of the DF.""" @@ -488,7 +488,7 @@ class DF(File): # {{{ def remove(self, file): """Removes 'file' from the content of the DF""" - content.remove(file) + self.content.remove(file) # }}} @@ -1591,7 +1591,7 @@ class RecordStructureEF(EF): # {{{ """ x.updaterecord(num_id, reference, offset, data) <==> x.writerecord(num_id, reference, offset, data, DCB["ONETIMEWRITE"]) """ - return writerecord(num_id, reference, offset, data, DCB["ONETIMEWRITE"]) + return self.writerecord(num_id, reference, offset, data, DCB["ONETIMEWRITE"]) def appendrecord(self, data): """