|
|
@ -47,10 +47,10 @@ index b2e1b85..d833de6 100644
|
|
|
|
# Allows to pass some tests for Windows via PosixPath.
|
|
|
|
# Allows to pass some tests for Windows via PosixPath.
|
|
|
|
_flavour.altsep = _flavour.altsep or "\\"
|
|
|
|
_flavour.altsep = _flavour.altsep or "\\"
|
|
|
|
|
|
|
|
|
|
|
|
+ # Python 3.13 renamed _flavour to pathmod
|
|
|
|
+ # Python 3.13 renamed _flavour to parser
|
|
|
|
+ pathmod = getattr(Path(), "pathmod", None)
|
|
|
|
+ parser = getattr(Path(), "parser", None)
|
|
|
|
+ if hasattr(pathmod, "altsep"):
|
|
|
|
+ if hasattr(parser, "altsep"):
|
|
|
|
+ pathmod.altsep = pathmod.altsep or "\\"
|
|
|
|
+ parser.altsep = parser.altsep or "\\"
|
|
|
|
+
|
|
|
|
+
|
|
|
|
def exists(self):
|
|
|
|
def exists(self):
|
|
|
|
return self.is_file() or self.is_dir()
|
|
|
|
return self.is_file() or self.is_dir()
|
|
|
|