diff --git a/boltons/formatutils.py b/boltons/formatutils.py index ad4db42..c8424c3 100644 --- a/boltons/formatutils.py +++ b/boltons/formatutils.py @@ -124,8 +124,13 @@ def get_format_args(fstr): arguments. Each element of the list includes the name and the nominal type of the field. - >>> get_format_args("{noun} is {1:d} years old{punct}") - ([(1, )], [('noun', ), ('punct', )]) + # >>> get_format_args("{noun} is {1:d} years old{punct}") + # ([(1, )], [('noun', ), ('punct', )]) + + # XXX: Py3k + >>> get_format_args("{noun} is {1:d} years old{punct}") == \ + ([(1, int)], [('noun', str), ('punct', str)]) + True """ # TODO: memoize formatter = Formatter()