Explorar el Código

Fix: translate_path() should return a string

default_compile_flags
vector-of-bool hace 4 años
padre
commit
ba26e411df
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      tests/http.py

+ 1
- 1
tests/http.py Ver fichero

@@ -25,7 +25,7 @@ class DirectoryServingHTTPRequestHandler(SimpleHTTPRequestHandler):
# Convert the given URL path to a path relative to the directory we are serving
abspath = Path(super().translate_path(path))
relpath = abspath.relative_to(Path.cwd())
return self.dir / relpath
return str(self.dir / relpath)


class ServerInfo(NamedTuple):

Cargando…
Cancelar
Guardar