21 Aug
2013
21 Aug
'13
6:36 a.m.
On 21 August 2013 11:30, Donald Stufft <donald@stufft.io> wrote:
On Aug 21, 2013, at 6:29 AM, Donald Stufft <donald@stufft.io> wrote:
introspecting the author email address
Of course I wrote that and then did summary because the location of the author email address changed between Metadata 1.x and 2.x and I didn't feel like looking up the exact difference.
:-) So would you see the API for author being if meta.version < (2, 0): author = meta["whatever_it_is_in_1.x"] else: author = meta["whatever_it_is_in_2.x"] (i.e., the metadata version would be available)? Sounds like a sensible approach. Paul.