March 14, 2009
4:40 p.m.
Barry Warsaw wrote:
On Mar 14, 2009, at 6:22 PM, noreply@launchpad.net 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 <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan