Lines Matching refs:_mode
57 self._mode = _MODE_CLOSED
83 self._mode = mode_code
86 self._mode = mode_code
90 if self._mode == _MODE_READ:
103 if self._mode == _MODE_CLOSED:
106 if self._mode == _MODE_READ:
108 elif self._mode == _MODE_WRITE:
118 self._mode = _MODE_CLOSED
124 return self._mode == _MODE_CLOSED
138 return self._mode == _MODE_READ
143 return self._mode == _MODE_WRITE
266 if self._mode == _MODE_READ: