Skip to content

Commit fb72910

Browse files
davesworkallburov
andauthored
open() accepts "rb" (#484)
fix #407 --------- Co-authored-by: allburov <allburov@gmail.com>
1 parent 32cdad0 commit fb72910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

artifactory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2104,7 +2104,7 @@ def open(self, mode="r", buffering=-1, encoding=None, errors=None, newline=None)
21042104
HTTPResponse, as if it was a regular filesystem object.
21052105
The only difference is that this object doesn't support seek()
21062106
"""
2107-
if mode != "r" or buffering != -1 or encoding or errors or newline:
2107+
if mode not in {"r", "rb"} or buffering != -1 or encoding or errors or newline:
21082108
raise NotImplementedError("Only the default open() arguments are supported")
21092109

21102110
return self._accessor.open(self)

0 commit comments

Comments
 (0)