[Buildbot-devel] trivial fix
Dustin J. Mitchell
dustin at zmanda.com
Thu Aug 2 18:56:01 UTC 2007
On Thu, Aug 02, 2007 at 12:12:30AM -0700, Brian Warner wrote:
> "Dustin J. Mitchell" <dustin at zmanda.com> writes:
>
> > The maildir test isn't passing -- on the off chance that this "works" in
> > some versions of Python and not in others, here's the fix:
>
> I've applied your patch. I hadn't seen a test failure, though.. what sort of
> failure were you seeing?
The problem is that, in Python, the iterator variable of a for loop is
not set if the sequence is empty:
for i in []: print i
print "this won't work:", i
I didn't look too hard at the code, but it seems tht count == 0 for me,
while count != 0 for you..
Dustin
--
Dustin J. Mitchell
Storage Software Engineer, Zmanda, Inc.
http://www.zmanda.com/
More information about the devel
mailing list