@@ -188,7 +188,7 @@ def format(*args, **kwargs):
188188
189189 def vformat (self , format_string , args , kwargs ):
190190 used_args = set ()
191- result = self ._vformat (format_string , args , kwargs , used_args , 2 )
191+ result , _ = self ._vformat (format_string , args , kwargs , used_args , 2 )
192192 self .check_unused_args (used_args , args , kwargs )
193193 return result
194194
@@ -235,14 +235,15 @@ def _vformat(self, format_string, args, kwargs, used_args, recursion_depth,
235235 obj = self .convert_field (obj , conversion )
236236
237237 # expand the format spec, if needed
238- format_spec = self ._vformat (format_spec , args , kwargs ,
239- used_args , recursion_depth - 1 ,
240- auto_arg_index = auto_arg_index )
238+ format_spec , auto_arg_index = self ._vformat (
239+ format_spec , args , kwargs ,
240+ used_args , recursion_depth - 1 ,
241+ auto_arg_index = auto_arg_index )
241242
242243 # format the object and append to the result
243244 result .append (self .format_field (obj , format_spec ))
244245
245- return '' .join (result )
246+ return '' .join (result ), auto_arg_index
246247
247248
248249 def get_value (self , key , args , kwargs ):
0 commit comments