Subversion Repositories freemyipod

Rev

Rev 600 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 600 Rev 604
Line 193... Line 193...
193
        if self.value == other or self.value > other:
193
        if self.value == other or self.value > other:
194
            return True
194
            return True
195
        return False
195
        return False
196
    
196
    
197
    def __ne__(self, other):
197
    def __ne__(self, other):
198
        if self.value == other:
198
        if type(other) == str:
-
 
199
            try: return getattr(self, other) != self.value
199
            return False
200
            except AttributeError: return True
200
        return True
201
        else:
-
 
202
            return self.value != other
201
 
203
 
202
 
204
 
203
class ExtendedCStruct(LittleEndianStructure):
205
class ExtendedCStruct(LittleEndianStructure):
204
    """
206
    """
205
        This is a subclass of the LittleEndianStructure.
207
        This is a subclass of the LittleEndianStructure.