瀏覽代碼

Fix: translate_path() should return a string

default_compile_flags
vector-of-bool 4 年之前
父節點
當前提交
ba26e411df
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      tests/http.py

+ 1
- 1
tests/http.py 查看文件

@@ -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…
取消
儲存