Here you go, forgot to push other day after commit, then forgot to email after push.<br><br><a href="http://github.com/mlaite/pony-build/commit/3dade44fde3f6bd5011898d18e85a3f224771d7c">http://github.com/mlaite/pony-build/commit/3dade44fde3f6bd5011898d18e85a3f224771d7c</a><br>
<br><div class="gmail_quote">On Sun, Apr 25, 2010 at 10:00 PM, C. Titus Brown <span dir="ltr">&lt;<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
would there be an associated push?<br>
<div><div></div><div class="h5"><br>
On Sun, Apr 25, 2010 at 09:54:10PM -0400, Max Laite wrote:<br>
&gt; Ah, try/finally worked out pretty good. I will get this stuff figured out<br>
&gt; eventually, or maybe not. haha<br>
&gt;<br>
&gt; Will look at the redundant success loop and push some more changes sometime<br>
&gt; this week.<br>
&gt;<br>
&gt; May be a little slow though next couple weeks, got end semester stuff and<br>
&gt; carnival.<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt; Max<br>
&gt;<br>
&gt; On Sun, Apr 25, 2010 at 9:20 PM, C. Titus Brown &lt;<a href="mailto:ctb@msu.edu">ctb@msu.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; On Sat, Apr 24, 2010 at 08:27:02PM -0400, Max Laite wrote:<br>
&gt; &gt; &gt; Whoops, guess I did not.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; <a href="http://github.com/mlaite/pony-build/commit/dbc6e54b65689ca27d71e7c9290ca897e789259a" target="_blank">http://github.com/mlaite/pony-build/commit/dbc6e54b65689ca27d71e7c9290ca897e789259a</a><br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Still passes all the context tests. Yay :)<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Though, I think we may have to change up the tests for the c.run()<br>
&gt; &gt; &gt; try/except block a bit to make sure it works as intended. What those<br>
&gt; &gt; changes<br>
&gt; &gt; &gt; are? --I am not sure yet, have to formulate my thoughts I guess.<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Ummmm, yup, that is about it for now.<br>
&gt; &gt;<br>
&gt; &gt; Cool -- let me know when you figure out what changes you want to make :).<br>
&gt; &gt; Looks good, thanks!<br>
&gt; &gt;<br>
&gt; &gt; I also wanted to point out a few things:<br>
&gt; &gt;<br>
&gt; &gt; around<br>
&gt; &gt; <a href="http://github.com/mlaite/pony-build/blob/env/client/pony_client.py#L813" target="_blank">http://github.com/mlaite/pony-build/blob/env/client/pony_client.py#L813</a>,<br>
&gt; &gt;<br>
&gt; &gt; you&#39;re violating &quot;Don&#39;t Repeat Yourself (DRY)&quot; -- context.end_command() and<br>
&gt; &gt; reslist.append are called both within and without the &#39;except&#39; (and<br>
&gt; &gt; incidentally, in different orders.  tsk tsk.).  I think with a teensy bit<br>
&gt; &gt; of refactoring and judicious use of &#39;try/finally&#39;, you could make this<br>
&gt; &gt; a bit shorter and a lot neater.<br>
&gt; &gt;<br>
&gt; &gt; Note that the &#39;success&#39; for loop (line 829 onwards) is pretty redundant;<br>
&gt; &gt; you can do that same logic within the main command loop, I think.<br>
&gt; &gt;<br>
&gt; &gt; Whaddya say?<br>
&gt; &gt;<br>
&gt; &gt; thanks,<br>
&gt; &gt; --titus<br>
&gt; &gt;<br>
<br>
</div></div><div class="im">&gt; _______________________________________________<br>
&gt; pony-build mailing list<br>
&gt; <a href="mailto:pony-build@lists.idyll.org">pony-build@lists.idyll.org</a><br>
&gt; <a href="http://lists.idyll.org/listinfo/pony-build" target="_blank">http://lists.idyll.org/listinfo/pony-build</a><br>
<br>
<br>
</div>--<br>
<div><div></div><div class="h5">C. Titus Brown, <a href="mailto:ctb@msu.edu">ctb@msu.edu</a><br>
</div></div></blockquote></div><br>