utils.py
branchstable
changeset 5077 dc448c9ad9dd
parent 5069 135c5d7b89d0
child 5195 e8235b2789fc
child 5320 848e92bb81cc
equal deleted inserted replaced
5076:b0e6134b4324 5077:dc448c9ad9dd
   133         return other[:] + ([self._item] * self._size)
   133         return other[:] + ([self._item] * self._size)
   134     def __eq__(self, other):
   134     def __eq__(self, other):
   135         if isinstance(other, RepeatList):
   135         if isinstance(other, RepeatList):
   136             return other._size == self.size and other._item == self.item
   136             return other._size == self.size and other._item == self.item
   137         return self[:] == other
   137         return self[:] == other
   138 
   138     def pop(self, i):
       
   139         self._size -= 1
   139 
   140 
   140 class UStringIO(list):
   141 class UStringIO(list):
   141     """a file wrapper which automatically encode unicode string to an encoding
   142     """a file wrapper which automatically encode unicode string to an encoding
   142     specifed in the constructor
   143     specifed in the constructor
   143     """
   144     """