diff --git a/fsspec/spec.py b/fsspec/spec.py index 921268df3..7daf850e7 100644 --- a/fsspec/spec.py +++ b/fsspec/spec.py @@ -1875,7 +1875,7 @@ def __init__( self.kwargs = kwargs - if mode not in {"ab", "rb", "wb"}: + if mode not in {"ab", "rb", "wb", "xb"}: raise NotImplementedError("File mode not supported") if mode == "rb": if size is not None: