Return the bytes value (contents) of the buffer
(self)
| 902 | self._lock = Lock() |
| 903 | |
| 904 | def getvalue(self): |
| 905 | """Return the bytes value (contents) of the buffer |
| 906 | """ |
| 907 | if self.closed: |
| 908 | raise ValueError("getvalue on closed file") |
| 909 | return bytes(self._buffer) |
| 910 | |
| 911 | def getbuffer(self): |
| 912 | """Return a readable and writable view of the buffer. |
no outgoing calls