1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
######################################################################
#
# File: b2sdk/_internal/stream/base.py
#
# Copyright 2020 Backblaze Inc. All Rights Reserved.
#
# License https://www.backblaze.com/using_b2_code.html
#
######################################################################
from __future__ import annotations
import io
class ReadOnlyStreamMixin:
def writeable(self):
return False
def write(self, data):
raise io.UnsupportedOperation('Cannot accept a write to a read-only stream')
|