Bugfix: Missing self. before reference to content dictionary

git-svn-id: https://vsmartcard.svn.sourceforge.net/svnroot/vsmartcard@472 96b47cad-a561-4643-ad3b-153ac7d7599c
This commit is contained in:
oepen
2011-08-01 10:52:37 +00:00
parent ae54cf5e18
commit 168f4fd434

View File

@@ -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):
"""