diff --git a/fsspec/spec.py b/fsspec/spec.py index 4e8d2fdd0..ad8703b26 100644 --- a/fsspec/spec.py +++ b/fsspec/spec.py @@ -1740,7 +1740,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: