diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-02-18 00:44:03 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-02-18 00:44:03 +0900 |
commit | b0acce8f5527e99711d4537fd15eed9ddc179310 (patch) | |
tree | 05f425b24f96e093084292cbc0d58da5603fd0b6 /sphinx/directives/code.py | |
parent | 85cb8d7b509847beb71668fb0311abbc2f2158f7 (diff) | |
download | sphinx-git-b0acce8f5527e99711d4537fd15eed9ddc179310.tar.gz |
Fix flake8 violation
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r-- | sphinx/directives/code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py index 1a1ce454e..2efa7f0a4 100644 --- a/sphinx/directives/code.py +++ b/sphinx/directives/code.py @@ -203,7 +203,7 @@ class LiteralIncludeReader(object): return lines except (IOError, OSError) as exc: raise IOError(_('Include file %r not found or reading it failed') % filename) - except UnicodeError as exc: + except UnicodeError: raise UnicodeError(_('Encoding %r used for reading included file %r seems to ' 'be wrong, try giving an :encoding: option') % (self.encoding, filename)) |