Skip to content

Commit 82d5d8b

Browse files
committed
Update __main__.py
1 parent bbd4f4b commit 82d5d8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pybase64/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ def readall(file: BinaryIO) -> bytes:
9999
if file == cast(BinaryIO, sys.stdin):
100100
# Python 3 < 3.9 does not honor the binary flag,
101101
# read from the underlying buffer
102-
if hasattr(file, "buffer"):
103-
return cast(BinaryIO, file.buffer).read()
104-
return file.read() # pragma: no cover
102+
if hasattr(file, "buffer"): # pragma: no cover
103+
return cast(BinaryIO, file.buffer).read() # pragma: no cover
104+
return file.read()
105105
# do not close the file
106106
try:
107107
data = file.read()

0 commit comments

Comments
 (0)