Files
cpython/Modules
Neal Norwitz aea70e03c4 Fix the refleak in strftime when converting a %Z with a user defined tzinfo.
I inverted some of the conditionals to reduce indent levels.  Hopefully
this makes it a little easier to read.

This code caused the leak:

    class FixedOffset(datetime.tzinfo):
        def tzname(self, dt): return "UTC"

    datetime.time(12, 47, tzinfo=FixedOffset()).strftime('%Z')

This code is very tricky and I'm not positive it works.  However,
it neither crashes nor leaks.
2007-08-12 04:32:26 +00:00
..
2007-08-11 15:39:18 +00:00
2006-02-27 17:20:04 +00:00
2007-08-08 22:08:30 +00:00
2007-07-24 00:16:38 +00:00
2006-12-28 04:47:50 +00:00
2007-08-11 14:25:27 +00:00
2007-08-06 20:59:28 +00:00
2007-06-11 21:48:58 +00:00
2007-08-11 04:58:43 +00:00