From 1239f27255c39b1c445efba88194f5c4442e4d1f Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 18 Feb 2017 01:41:00 +0900 Subject: [PATCH] Fix flake8 violation --- sphinx/directives/code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 535995c18..a1886a1cd 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -208,7 +208,7 @@ class LiteralIncludeReader(object): return dedent_lines(lines, self.options.get('dedent'), location=location) else: return lines - except (IOError, OSError) as exc: + except (IOError, OSError): raise IOError(_('Include file %r not found or reading it failed') % filename) except UnicodeError: raise UnicodeError(_('Encoding %r used for reading included file %r seems to '