增加环绕侦察场景适配
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import base64
|
||||
import io
|
||||
from typing import Optional
|
||||
from urllib.parse import unquote
|
||||
|
||||
from fsspec import AbstractFileSystem
|
||||
@@ -50,7 +49,7 @@ class DataFileSystem(AbstractFileSystem):
|
||||
return io.BytesIO(self.cat_file(path))
|
||||
|
||||
@staticmethod
|
||||
def encode(data: bytes, mime: Optional[str] = None):
|
||||
def encode(data: bytes, mime: str | None = None):
|
||||
"""Format the given data into data-URL syntax
|
||||
|
||||
This version always base64 encodes, even when the data is ascii/url-safe.
|
||||
|
||||
Reference in New Issue
Block a user