Explorar o código

Add note about encoding.

Jelmer Vernooij %!s(int64=8) %!d(string=hai) anos
pai
achega
57fbe01044
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      dulwich/client.py

+ 3 - 0
dulwich/client.py

@@ -1100,6 +1100,9 @@ class HttpGitClient(GitClient):
 
     def _get_url(self, path):
         if not isinstance(path, str):
+            # TODO(jelmer): this is unrelated to the local filesystem;
+            # This is not necessarily the right encoding to decode the path
+            # with.
             path = path.decode(sys.getfilesystemencoding())
         return urlparse.urljoin(self._base_url, path).rstrip("/") + "/"