Skip to content

Commit a4f4df7

Browse files
committed
moving TeeStream internal tee to private name to avoid potential future dunder conflict
1 parent c83a818 commit a4f4df7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/aws_encryption_sdk/internal/utils/streams.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ class TeeStream(ObjectProxy):
4141
:type tee: io.BaseIO
4242
"""
4343

44-
__tee__ = None # Prime ObjectProxy's attributes to allow setting in init.
44+
__tee = None # Prime ObjectProxy's attributes to allow setting in init.
4545

4646
def __init__(self, wrapped, tee):
4747
"""Creates the local tee stream."""
4848
super(TeeStream, self).__init__(wrapped)
49-
self.__tee__ = tee
49+
self.__tee = tee
5050

5151
def read(self, b=None):
5252
"""Reads data from source, copying it into ``tee`` before returning.
5353
5454
:param int b: number of bytes to read
5555
"""
5656
data = self.__wrapped__.read(b)
57-
self.__tee__.write(data)
57+
self.__tee.write(data)
5858
return data

0 commit comments

Comments
 (0)