@@ -81,9 +81,10 @@ def _load(self, plugins):
81
81
try :
82
82
module = imp .load_module (name , file , pathname , description )
83
83
except ImportError :
84
- error ('Encountered import error loading plugin at %s' % path )
84
+ error ('Encountered import error loading plugin at {0}' .format (
85
+ path ))
85
86
except Exception as e :
86
- error ('Error loading plugin at %s %s: %s' % (
87
+ error ('Error loading plugin at {0} {1}: {2}' . format (
87
88
path , type (e ).__name__ , e ))
88
89
handlers = []
89
90
self ._discover_classes (module , handlers , path )
@@ -132,13 +133,13 @@ def _discover_functions(self, obj, handlers, plugin_path):
132
133
method = '{0}:{1}' .format (plugin_path , method )
133
134
if fn ._nvim_rpc_sync :
134
135
if method in self ._request_handlers :
135
- raise Exception ('Request handler for "{0}" is ' +
136
- 'already registered' .format (method ))
136
+ raise Exception (( 'Request handler for "{0}" is ' +
137
+ 'already registered' ) .format (method ))
137
138
self ._request_handlers [method ] = fn
138
139
else :
139
140
if method in self ._notification_handlers :
140
- raise Exception ('Notification handler for "{0}" is ' +
141
- 'already registered' .format (method ))
141
+ raise Exception (( 'Notification handler for "{0}" is ' +
142
+ 'already registered' ) .format (method ))
142
143
self ._notification_handlers [method ] = fn
143
144
if hasattr (fn , 'nvim_rpc_spec' ):
144
145
specs .append (fn .nvim_rpc_spec )
0 commit comments