Lines Matching refs:_mode
61 self._mode = _MODE_CLOSED
87 self._mode = mode_code
90 self._mode = mode_code
94 if self._mode == _MODE_READ:
108 if self._mode == _MODE_CLOSED:
111 if self._mode == _MODE_READ:
113 elif self._mode == _MODE_WRITE:
123 self._mode = _MODE_CLOSED
129 return self._mode == _MODE_CLOSED
143 return self._mode == _MODE_READ
148 return self._mode == _MODE_WRITE
273 if self._mode == _MODE_READ: