From 4a6d5737ccde3fb009bc5bd62220d5d0dc355b83 Mon Sep 17 00:00:00 2001 From: Martin Durant Date: Fri, 22 Nov 2024 11:35:16 -0500 Subject: [PATCH] x for abstract file (#1756) --- fsspec/spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: