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:
@@ -436,13 +436,13 @@ class DF(File): # {{{
|
|||||||
"""
|
"""
|
||||||
x.__delitem__(key) <==> del x.content[key]
|
x.__delitem__(key) <==> del x.content[key]
|
||||||
"""
|
"""
|
||||||
del content[key]
|
del self.content[key]
|
||||||
|
|
||||||
def __contains__(self, item):
|
def __contains__(self, item):
|
||||||
"""
|
"""
|
||||||
x.__contains__(item) <==> item in x.content
|
x.__contains__(item) <==> item in x.content
|
||||||
"""
|
"""
|
||||||
return item in content
|
return item in self.content
|
||||||
|
|
||||||
def append(self, file):
|
def append(self, file):
|
||||||
"""Appends 'file' to the content of the DF."""
|
"""Appends 'file' to the content of the DF."""
|
||||||
@@ -488,7 +488,7 @@ class DF(File): # {{{
|
|||||||
|
|
||||||
def remove(self, file):
|
def remove(self, file):
|
||||||
"""Removes 'file' from the content of the DF"""
|
"""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"])
|
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):
|
def appendrecord(self, data):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user