Mercurial > cpython-lru_cache-weakref
diff Lib/string.py @ 43200:463b341a9d63
Removed used_args param from string.Formatter.get_field. It was left in by mistake from an earlier edit.
| author | Eric Smith <eric@trueblade.com> |
|---|---|
| date | Sun, 02 Sep 2007 15:33:26 +0000 |
| parents | 5c30f15a6b87 |
| children | e946073dee38 |
line wrap: on
line diff
--- a/Lib/string.py Sat Sep 01 23:34:30 2007 +0000 +++ b/Lib/string.py Sun Sep 02 15:33:26 2007 +0000 @@ -217,7 +217,7 @@ # given the field_name, find the object it references # and the argument it came from - obj, arg_used = self.get_field(field_name, args, kwargs, used_args) + obj, arg_used = self.get_field(field_name, args, kwargs) used_args.add(arg_used) # do any conversion on the resulting object @@ -272,11 +272,9 @@ # or "lookup[3]" # used_args: a set of which args have been used # args, kwargs: as passed in to vformat - # also, mark it as used in 'used_args' - def get_field(self, field_name, args, kwargs, used_args): + def get_field(self, field_name, args, kwargs): first, rest = field_name._formatter_field_name_split() - used_args.add(first) obj = self.get_value(first, args, kwargs) # loop through the rest of the field_name, doing
