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-checkins mailing list [email protected] Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org
