1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
from pypy.interpreter.gateway import unwrap_spec
@unwrap_spec(unicode='text')
def formatter_parser(space, unicode):
from pypy.objspace.std.newformat import unicode_template_formatter
tformat = unicode_template_formatter(space, unicode)
return tformat.formatter_parser()
@unwrap_spec(unicode='text')
def formatter_field_name_split(space, unicode):
from pypy.objspace.std.newformat import unicode_template_formatter
tformat = unicode_template_formatter(space, unicode)
return tformat.formatter_field_name_split()
|