Lines Matching refs:_mode
64 self._mode = _MODE_CLOSED
94 self._mode = mode_code
97 self._mode = mode_code
101 if self._mode == _MODE_READ:
115 if self._mode == _MODE_CLOSED:
118 if self._mode == _MODE_READ:
120 elif self._mode == _MODE_WRITE:
130 self._mode = _MODE_CLOSED
136 return self._mode == _MODE_CLOSED
150 return self._mode == _MODE_READ
155 return self._mode == _MODE_WRITE
280 if self._mode == _MODE_READ: