summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r--sphinx/directives/code.py3
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'])