You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by cm...@collab.net on 2002/12/19 15:08:08 UTC

Re: svn commit: rev 4168 - trunk/tools/examples

gstein@tigris.org writes:

> Author: gstein
> Date: 2002-12-19 07:57:32 -0600 (Thu, 19 Dec 2002)
> New Revision: 4168
> 
> Modified:
>    trunk/tools/examples/svnshell.py
> Log:
> * examples/svnshell.py
>   (SVNShell.cmd_pcat): remove use of len() since that is implicit in
>     testing for a "true" value. use DICT.items() rather than .keys()
>     then fetching the value.

Aaah... Master Python Fu has enlightened again.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: svn commit: rev 4168 - trunk/tools/examples

Posted by Greg Stein <gs...@lyra.org>.
On Thu, Dec 19, 2002 at 09:08:08AM -0600, cmpilato@collab.net wrote:
> gstein@tigris.org writes:
> 
> > Author: gstein
> > Date: 2002-12-19 07:57:32 -0600 (Thu, 19 Dec 2002)
> > New Revision: 4168
> > 
> > Modified:
> >    trunk/tools/examples/svnshell.py
> > Log:
> > * examples/svnshell.py
> >   (SVNShell.cmd_pcat): remove use of len() since that is implicit in
> >     testing for a "true" value. use DICT.items() rather than .keys()
> >     then fetching the value.
> 
> Aaah... Master Python Fu has enlightened again.

:-)

Just remember to cover your eyes when I flex my python.

*ahem*

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org