From 48183b1d2732858889390591071f4a5dcce5bf73 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" <1330696+mr-c@users.noreply.github.com> Date: Thu, 29 Nov 2018 15:28:07 +0200 Subject: [PATCH] Unicode fixes for url2pathname() and pathname2url() (#2555) --- stdlib/2/urllib.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/2/urllib.pyi b/stdlib/2/urllib.pyi index 12836231c..3373da357 100644 --- a/stdlib/2/urllib.pyi +++ b/stdlib/2/urllib.pyi @@ -1,7 +1,7 @@ from typing import Any, AnyStr, IO, List, Mapping, Sequence, Text, Tuple, TypeVar, Union -def url2pathname(pathname: str) -> str: ... -def pathname2url(pathname: str) -> str: ... +def url2pathname(pathname: AnyStr) -> AnyStr: ... +def pathname2url(pathname: AnyStr) -> AnyStr: ... def urlopen(url: str, data=..., proxies: Mapping[str, str] = ..., context=...) -> IO[Any]: ... def urlretrieve(url, filename=..., reporthook=..., data=..., context=...): ... def urlcleanup() -> None: ...