From 53917f228f9bfbb4607b6441119baeb129869b93 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Thu, 13 Dec 2018 01:33:14 +0900 Subject: Move to py3 mode for mypy (and remove many "type: ignore" comments) --- sphinx/directives/code.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sphinx/directives/code.py') 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']) -- cgit v1.2.1