Ver código fonte

Fix: translate_path() should return a string

default_compile_flags
vector-of-bool 4 anos atrás
pai
commit
ba26e411df
1 arquivos alterados com 1 adições e 1 exclusões
  1. +1
    -1
      tests/http.py

+ 1
- 1
tests/http.py Ver arquivo

@@ -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):

Carregando…
Cancelar
Salvar