diff --git a/artifactory.py b/artifactory.py index 72d50a5..4258297 100755 --- a/artifactory.py +++ b/artifactory.py @@ -2104,7 +2104,7 @@ def open(self, mode="r", buffering=-1, encoding=None, errors=None, newline=None) HTTPResponse, as if it was a regular filesystem object. The only difference is that this object doesn't support seek() """ - if mode != "r" or buffering != -1 or encoding or errors or newline: + if mode not in {"r", "rb"} or buffering != -1 or encoding or errors or newline: raise NotImplementedError("Only the default open() arguments are supported") return self._accessor.open(self)