@@ -81,9 +81,10 @@ def _load(self, plugins):
8181 try :
8282 module = imp .load_module (name , file , pathname , description )
8383 except ImportError :
84- error ('Encountered import error loading plugin at %s' % path )
84+ error ('Encountered import error loading plugin at {0}' .format (
85+ path ))
8586 except Exception as e :
86- error ('Error loading plugin at %s %s: %s' % (
87+ error ('Error loading plugin at {0} {1}: {2}' . format (
8788 path , type (e ).__name__ , e ))
8889 handlers = []
8990 self ._discover_classes (module , handlers , path )
@@ -132,13 +133,13 @@ def _discover_functions(self, obj, handlers, plugin_path):
132133 method = '{0}:{1}' .format (plugin_path , method )
133134 if fn ._nvim_rpc_sync :
134135 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 ))
137138 self ._request_handlers [method ] = fn
138139 else :
139140 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 ))
142143 self ._notification_handlers [method ] = fn
143144 if hasattr (fn , 'nvim_rpc_spec' ):
144145 specs .append (fn .nvim_rpc_spec )
0 commit comments