Sfoglia il codice sorgente

Fix: translate_path() should return a string

default_compile_flags
vector-of-bool 4 anni fa
parent
commit
ba26e411df
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      tests/http.py

+ 1
- 1
tests/http.py Vedi File

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

Loading…
Annulla
Salva