diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-11-30 07:02:40 +0900 |
---|---|---|
committer | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-11-30 07:02:40 +0900 |
commit | 91b9b57259353b169b76a70101901119b3fb569d (patch) | |
tree | 160a87ec0d26c9884001f25bedf739334f72333c | |
parent | cd49fbaeb042ec3ae9d8bad8f3e061db901f7c07 (diff) | |
download | deoplete.nvim-91b9b57259353b169b76a70101901119b3fb569d.zip |
Fix lint errors
-rw-r--r-- | rplugin/python3/deoplete/deoplete.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/rplugin/python3/deoplete/deoplete.py b/rplugin/python3/deoplete/deoplete.py index 8cba2e6..b0e56b0 100644 --- a/rplugin/python3/deoplete/deoplete.py +++ b/rplugin/python3/deoplete/deoplete.py @@ -22,9 +22,6 @@ from deoplete.util import (bytepos2charpos, charpos2bytepos, error, error_tb, class Deoplete(logger.LoggingMixin): - __ignored_sources = set() - __ignored_filters = set() - def __init__(self, vim): self.__vim = vim self.__filters = {} @@ -36,6 +33,8 @@ class Deoplete(logger.LoggingMixin): self.__source_errors = defaultdict(int) self.__filter_errors = defaultdict(int) self.name = 'core' + self.__ignored_sources = set() + self.__ignored_filters = set() def completion_begin(self, context): try: @@ -128,7 +127,7 @@ class Deoplete(logger.LoggingMixin): self.profile_start(ctx, filter.name) ctx['candidates'] = filter.filter(ctx) self.profile_end(filter.name) - except Exception as exc: + except Exception: self.__filter_errors[filter.name] += 1 if self.__source_errors[filter.name] > 2: error(self.__vim, 'Too many errors from "%s". ' @@ -159,7 +158,7 @@ class Deoplete(logger.LoggingMixin): 'source': source, 'context': ctx, }) - except Exception as exc: + except Exception: self.__source_errors[source_name] += 1 if self.__source_errors[source_name] > 2: error(self.__vim, 'Too many errors from "%s". ' |