Barry Warsaw wrote:
>
>On Mar 14, 2009, at 6:22 PM, [email protected] wrote:
>>
>> @@ -510,6 +507,12 @@
>>         try:
>>             msgfp = open(pckfile)
>>             msg = cPickle.load(msgfp)
>> +            if data == {}:
>
>This looks a little Pythonically weird; maybe if len(data) == 0 instead?
>


Thanks Barry.

Actually, I was concerned about the possibility that data could be
None, but upon closer inspection, that can't happen, and even if it
did, it wouldn't matter, so just if data: should be good.

-- 
Mark Sapiro <[email protected]>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-Developers mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-developers
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: 
http://www.mail-archive.com/mailman-developers%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-developers/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9

Reply via email to