diff options
| author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-13 01:33:14 +0900 |
|---|---|---|
| committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-15 02:42:42 +0900 |
| commit | 53917f228f9bfbb4607b6441119baeb129869b93 (patch) | |
| tree | 4e87e2e8a2fc209f74a3675dc0f079bda78b6a3b /sphinx/application.py | |
| parent | f8a2e7aa8af27b9d90330d9d795ef20fe0158001 (diff) | |
| download | sphinx-git-53917f228f9bfbb4607b6441119baeb129869b93.tar.gz | |
Move to py3 mode for mypy (and remove many "type: ignore" comments)
Diffstat (limited to 'sphinx/application.py')
| -rw-r--r-- | sphinx/application.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index e12a2035b..984b2b6af 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -276,10 +276,10 @@ class Sphinx: user_locale_dirs, self.config.language, domains=['sphinx'], charset=self.config.source_encoding): catinfo.write_mo(self.config.language) - locale_dirs = [None, path.join(package_dir, 'locale')] + user_locale_dirs # type: ignore # NOQA + locale_dirs = [None, path.join(package_dir, 'locale')] + user_locale_dirs else: locale_dirs = [] - self.translator, has_translation = locale.init(locale_dirs, self.config.language) # type: ignore # NOQA + self.translator, has_translation = locale.init(locale_dirs, self.config.language) if self.config.language is not None: if has_translation or self.config.language == 'en': # "en" never needs to be translated |
