@@ -120,7 +120,7 @@ def _load(self, plugins):
120
120
for path in plugins :
121
121
err = None
122
122
if path in self ._loaded :
123
- error ('{0 } is already loaded' .format (path ))
123
+ error ('{} is already loaded' .format (path ))
124
124
continue
125
125
try :
126
126
if path == "script_host.py" :
@@ -133,7 +133,7 @@ def _load(self, plugins):
133
133
self ._discover_classes (module , handlers , path )
134
134
self ._discover_functions (module , handlers , path )
135
135
if not handlers :
136
- error ('{0 } exports no handlers' .format (path ))
136
+ error ('{} exports no handlers' .format (path ))
137
137
continue
138
138
self ._loaded [path ] = {'handlers' : handlers , 'module' : module }
139
139
except Exception as e :
@@ -179,20 +179,20 @@ def predicate(o):
179
179
180
180
method = fn ._nvim_rpc_method_name
181
181
if fn ._nvim_prefix_plugin_path :
182
- method = '{0 }:{1 }' .format (plugin_path , method )
182
+ method = '{}:{}' .format (plugin_path , method )
183
183
184
184
fn_wrapped = functools .partial (self ._wrap_function , fn ,
185
185
sync , decode , nvim_bind , method )
186
186
self ._copy_attributes (fn , fn_wrapped )
187
187
# register in the rpc handler dict
188
188
if sync :
189
189
if method in self ._request_handlers :
190
- raise Exception (('Request handler for "{0 }" is ' +
190
+ raise Exception (('Request handler for "{}" is ' +
191
191
'already registered' ).format (method ))
192
192
self ._request_handlers [method ] = fn_wrapped
193
193
else :
194
194
if method in self ._notification_handlers :
195
- raise Exception (('Notification handler for "{0 }" is ' +
195
+ raise Exception (('Notification handler for "{}" is ' +
196
196
'already registered' ).format (method ))
197
197
self ._notification_handlers [method ] = fn_wrapped
198
198
if hasattr (fn , '_nvim_rpc_spec' ):
0 commit comments