Eric Smith
625cbf28ee
Modified parsing of format strings, so that we always return
...
a tuple (literal, field_name, format_spec, conversion).
literal will always be a string, but might be of zero length.
field_name will be None if there is no markup text
format_spec will be a (possibly zero length) string if
field_name is non-None
conversion will be a one character string, or None
This makes the Formatter class, and especially it's parse()
method, easier to understand.
Suggestion was by Jim Jewett, inspired by the "tail" of an
elementtree node.
Also, fixed a reference leak in fieldnameiter_next.
2007-08-29 03:22:59 +00:00
..
2007-08-28 08:05:56 +00:00
2007-08-28 21:37:11 +00:00
2007-08-24 16:32:05 +00:00
2007-08-17 16:23:21 +00:00
2007-08-22 21:45:02 +00:00
2007-08-26 23:37:53 +00:00
2007-08-12 00:43:29 +00:00
2007-08-24 16:32:05 +00:00
2007-07-16 23:10:57 +00:00
2007-06-13 18:07:49 +00:00
2007-08-28 06:07:49 +00:00
2007-08-23 00:01:55 +00:00
2007-08-05 15:29:28 +00:00
2007-06-13 18:07:49 +00:00
2007-08-10 18:15:11 +00:00
2007-08-29 02:57:31 +00:00
2007-08-08 17:01:45 +00:00
2007-08-24 18:57:22 +00:00
2007-06-18 17:58:50 +00:00
2007-06-13 18:07:49 +00:00
2007-08-20 19:29:24 +00:00
2007-05-15 18:46:22 +00:00
2007-06-13 18:07:49 +00:00
2007-08-06 23:33:07 +00:00
2007-07-18 20:57:44 +00:00
2007-08-29 02:30:49 +00:00
2007-08-22 23:45:42 +00:00
2007-05-15 18:46:22 +00:00
2007-08-28 06:06:33 +00:00
2007-04-27 19:54:29 +00:00
2007-03-18 15:41:51 +00:00
2007-05-07 22:24:25 +00:00
2007-08-28 03:32:38 +00:00
2007-08-12 00:43:29 +00:00
2007-06-07 23:15:56 +00:00
2007-04-12 22:55:07 +00:00
2007-06-07 22:37:45 +00:00
2007-08-05 15:29:28 +00:00
2007-05-04 13:05:09 +00:00
2007-07-20 00:22:32 +00:00
2007-05-11 16:50:42 +00:00
2007-07-15 13:01:48 +00:00
2007-05-14 22:51:27 +00:00
2007-08-24 16:32:05 +00:00
2007-07-20 00:30:38 +00:00
2007-08-09 01:03:29 +00:00
2007-07-20 00:22:32 +00:00
2007-06-07 23:15:56 +00:00
2007-08-12 00:43:29 +00:00
2007-07-03 08:25:58 +00:00
2007-06-13 18:07:49 +00:00
2007-08-16 23:48:43 +00:00
2007-07-03 08:25:58 +00:00
2007-06-07 23:15:56 +00:00
2007-08-12 00:43:29 +00:00
2007-04-27 19:54:29 +00:00
2007-08-28 00:09:54 +00:00
2007-07-03 08:25:58 +00:00
2007-08-16 14:35:24 +00:00
2007-05-15 18:46:22 +00:00
2007-07-17 20:45:57 +00:00
2007-05-14 22:51:27 +00:00
2007-07-16 23:10:57 +00:00
2007-08-29 03:08:55 +00:00
2007-05-02 19:09:54 +00:00
2007-08-13 09:05:16 +00:00
2007-08-27 23:09:25 +00:00
2007-07-03 08:25:58 +00:00
2007-08-27 17:23:59 +00:00
2007-05-03 17:18:26 +00:00
2007-08-29 01:53:26 +00:00
2007-06-06 23:52:48 +00:00
2007-04-27 19:54:29 +00:00
2007-08-13 17:50:00 +00:00
2007-08-24 23:17:28 +00:00
2007-07-18 18:15:48 +00:00
2007-08-27 17:39:33 +00:00
2007-06-30 05:01:58 +00:00
2007-07-10 11:34:31 +00:00
2007-05-14 22:51:27 +00:00
2007-04-27 19:54:29 +00:00
2007-08-09 01:03:29 +00:00
2007-07-03 08:25:58 +00:00
2007-08-27 17:23:59 +00:00
2007-05-14 22:51:27 +00:00
2007-06-12 00:25:08 +00:00
2007-06-07 23:15:56 +00:00
2007-08-24 16:32:05 +00:00
2007-04-15 12:05:43 +00:00
2007-08-12 00:43:29 +00:00
2007-08-17 02:30:27 +00:00
2007-04-27 19:54:29 +00:00
2007-08-12 00:43:29 +00:00
2007-08-27 23:18:54 +00:00
2007-08-27 23:18:54 +00:00
2007-08-16 14:35:24 +00:00
2007-06-13 18:07:49 +00:00
2007-07-23 00:24:10 +00:00
2007-08-24 16:32:05 +00:00
2007-08-09 01:03:29 +00:00
2007-08-12 00:43:29 +00:00
2007-04-21 15:47:16 +00:00
2007-06-13 18:07:49 +00:00
2007-08-10 17:36:34 +00:00
2007-04-21 15:47:16 +00:00
2007-08-09 01:03:29 +00:00
2007-07-28 17:52:25 +00:00
2007-06-13 18:07:49 +00:00
2007-05-22 18:11:13 +00:00
2007-06-13 18:07:49 +00:00
2007-04-27 19:54:29 +00:00
2007-08-28 21:37:11 +00:00
2007-04-27 19:54:29 +00:00
2007-08-09 14:26:58 +00:00
2007-08-11 06:57:14 +00:00
2007-06-06 23:52:48 +00:00
2007-05-18 00:51:22 +00:00
2007-08-20 19:06:03 +00:00
2007-08-17 02:30:27 +00:00
2007-08-06 23:33:07 +00:00
2007-08-24 16:32:05 +00:00
2007-08-13 17:50:00 +00:00
2007-08-28 21:37:11 +00:00
2007-08-03 19:03:39 +00:00
2007-07-11 13:09:30 +00:00
2007-06-07 23:15:56 +00:00
2007-04-27 19:54:29 +00:00
2007-08-28 21:37:11 +00:00
2007-06-13 18:07:49 +00:00
2007-08-29 03:22:59 +00:00
2007-05-07 22:24:25 +00:00
2007-05-27 09:19:04 +00:00
2007-08-27 23:58:21 +00:00
2007-05-15 18:46:22 +00:00
2007-08-21 22:49:52 +00:00
2007-05-22 18:11:13 +00:00
2007-08-28 21:37:11 +00:00
2007-04-27 19:54:29 +00:00
2007-08-28 03:29:45 +00:00
2007-08-11 16:40:13 +00:00
2007-08-20 19:25:41 +00:00
2007-05-22 18:11:13 +00:00
2007-03-18 19:01:53 +00:00
2007-06-13 18:07:49 +00:00
2007-08-12 00:43:29 +00:00
2007-08-05 15:29:28 +00:00
2007-06-07 23:15:56 +00:00
2007-07-10 09:10:40 +00:00
2007-08-27 18:10:06 +00:00
2007-08-25 19:00:31 +00:00
2007-05-18 00:51:22 +00:00
2007-08-12 00:43:29 +00:00
2007-04-21 15:47:16 +00:00
2007-08-28 21:37:11 +00:00
2007-08-27 17:23:59 +00:00
2007-08-24 04:13:42 +00:00
2007-06-07 23:15:56 +00:00
2007-08-27 20:40:10 +00:00
2007-06-13 18:07:49 +00:00
2007-07-11 13:09:30 +00:00
2007-08-16 14:35:24 +00:00
2007-07-26 03:19:46 +00:00
2007-08-27 22:31:36 +00:00
2007-08-27 17:03:28 +00:00