summaryrefslogtreecommitdiff
path: root/sphinx/util/fileutil.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-16 00:24:21 +0900
committerGitHub <noreply@github.com>2018-12-16 00:24:21 +0900
commit79eec90f36f5a74e24cfd6740126396fd6567e07 (patch)
treea7c8d2087ee1f50dadb5ca78343ac10c6959b740 /sphinx/util/fileutil.py
parent0031c9b4822ae9684888ae90bc70d6ceb3313581 (diff)
parent6bc357140dbb074eb0d590c1226009f83f97862e (diff)
downloadsphinx-git-79eec90f36f5a74e24cfd6740126396fd6567e07.tar.gz
Merge pull request #5773 from tk0miya/fix_typehints_for_unicode
Replace all "unicode" type by "str"
Diffstat (limited to 'sphinx/util/fileutil.py')
-rw-r--r--sphinx/util/fileutil.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/util/fileutil.py b/sphinx/util/fileutil.py
index df6bd051b..ecce46c76 100644
--- a/sphinx/util/fileutil.py
+++ b/sphinx/util/fileutil.py
@@ -22,11 +22,10 @@ if False:
from typing import Callable, Dict, Union # NOQA
from sphinx.util.matching import Matcher # NOQA
from sphinx.util.template import BaseRenderer # NOQA
- from sphinx.util.typing import unicode # NOQA
def copy_asset_file(source, destination, context=None, renderer=None):
- # type: (unicode, unicode, Dict, BaseRenderer) -> None
+ # type: (str, str, Dict, BaseRenderer) -> None
"""Copy an asset file to destination.
On copying, it expands the template variables if context argument is given and
@@ -59,7 +58,7 @@ def copy_asset_file(source, destination, context=None, renderer=None):
def copy_asset(source, destination, excluded=lambda path: False, context=None, renderer=None):
- # type: (unicode, unicode, Union[Callable[[unicode], bool], Matcher], Dict, BaseRenderer) -> None # NOQA
+ # type: (str, str, Union[Callable[[str], bool], Matcher], Dict, BaseRenderer) -> None
"""Copy asset files to destination recursively.
On copying, it expands the template variables if context argument is given and