Skip to content
Snippets Groups Projects
Commit bd43465af568 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

fncache: add attribute to check whether we're using dotencode

This will make it easy to know if we can use the Rust implementation that
doesn't support older forms of encoding.
parent 9fbdf355c916
No related branches found
No related tags found
3 merge requests!1292Draft: 7.0rc preparation,!1115ci: disable caching of the wheels that get built to save space,!961Introduce a pure Rust VFS
......@@ -1122,6 +1122,7 @@
vfsmod.proxyvfs.__init__(self, vfs)
self.fncache: fncache = fnc
self.encode = encode
self.uses_dotencode = encode is _pathencode
def __call__(self, path, mode=b'r', *args, **kw):
encoded = self.encode(path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment