Chris Jerdonek added the comment:

if today == todayagain:
-                break
+                return  # test passed

Might it make more sense to do the passing time-delta check inside the loop (at 
the above location), and then raise an exception at the end if the loop 
exhausts?  I think this might be clearer (in addition to preventing unnecessary 
looping).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15933>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to