Lines Matching refs:_mode
95 self._mode = _MODE_CLOSED
122 self._mode = mode_code
125 self._mode = mode_code
129 if self._mode == _MODE_READ:
140 if self._mode == _MODE_CLOSED:
143 if self._mode == _MODE_READ:
146 elif self._mode == _MODE_WRITE:
156 self._mode = _MODE_CLOSED
161 return self._mode == _MODE_CLOSED
175 return self._mode == _MODE_READ
180 return self._mode == _MODE_WRITE
258 if self._mode == _MODE_READ: