commit | 781266ebb60e7ac781a3e07030d92275721ff3cf | [log] [tgz] |
---|---|---|
author | Géry Ogam <gery.ogam@gmail.com> | Wed Sep 11 15:03:46 2019 +0200 |
committer | Zachary Ware <zachary.ware@gmail.com> | Wed Sep 11 14:03:46 2019 +0100 |
tree | 8a39e79a64aa7421f2fc0f191ee2c053fa746966 | |
parent | e1d455f3a3b82c2e08d5e133bcbab5a181b66cfb [diff] [blame] |
bpo-35640: Allow passing PathLike arguments to SimpleHTTPRequestHandler (GH-11398)
diff --git a/Lib/http/server.py b/Lib/http/server.py index b247675..005dd82 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py
@@ -642,7 +642,7 @@ def __init__(self, *args, directory=None, **kwargs): if directory is None: directory = os.getcwd() - self.directory = directory + self.directory = os.fspath(directory) super().__init__(*args, **kwargs) def do_GET(self):