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/directives/code.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/directives/code.py')
-rw-r--r-- | sphinx/directives/code.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 574e06e5e..914d5d4b0 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -216,8 +216,7 @@ class LiteralIncludeReader: def read_file(self, filename, location=None): # type: (unicode, Any) -> List[unicode] try: - with open(filename, # type: ignore - encoding=self.encoding, errors='strict') as f: + with open(filename, encoding=self.encoding, errors='strict') as f: text = f.read() # type: unicode if 'tab-width' in self.options: text = text.expandtabs(self.options['tab-width']) |