Skip to content

Commit 4f0b8b6

Browse files
committed
gh-143378: clean up duplicated shape check in Python implementation
1 parent 2155e48 commit 4f0b8b6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Lib/_pyio.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -949,8 +949,6 @@ def read1(self, size=-1):
949949
return self.read(size)
950950

951951
def write(self, b):
952-
if self.closed:
953-
raise ValueError("write to closed file")
954952
if isinstance(b, str):
955953
raise TypeError("can't write str to binary stream")
956954
with memoryview(b) as view:

0 commit comments

Comments
 (0)