We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbd4f4b commit 82d5d8bCopy full SHA for 82d5d8b
src/pybase64/__main__.py
@@ -99,9 +99,9 @@ def readall(file: BinaryIO) -> bytes:
99
if file == cast(BinaryIO, sys.stdin):
100
# Python 3 < 3.9 does not honor the binary flag,
101
# read from the underlying buffer
102
- if hasattr(file, "buffer"):
103
- return cast(BinaryIO, file.buffer).read()
104
- return file.read() # pragma: no cover
+ if hasattr(file, "buffer"): # pragma: no cover
+ return cast(BinaryIO, file.buffer).read() # pragma: no cover
+ return file.read()
105
# do not close the file
106
try:
107
data = file.read()
0 commit comments