On Feb 17, 2008 1:00 AM, Jonas Karlsson <[EMAIL PROTECTED]> wrote:
> On Sat, 16 Feb 2008 11:29:41 +0100, Michael Homer <[EMAIL PROTECTED]> wrote:
>
> > CVSROOT: /sources/goboscripts
> > Module name: tools
> > Changes by: Michael Homer <mwh> 08/02/16 10:29:41
> >
> > Added files:
> > Scripts/bin : AugmentCommandNotFoundDatabase
> >
> [...]
> > +# Output data in sorted order so it's deterministic and amenable to short
> > diffs when maintained in CVS.
> > +executables = sorted(commands.keys())
> > +out("commands = {\n")
> > +for ex in executables:
> > + out(" '" + ex + "': [")
> > + for prog in sorted(commands[ex]):
> > + out("'" + prog + "', ")
>
> Is it supposed to be a comma here? The output then becomes:
> 'foo': ['Foo', ],
Yes. It's not necessary, it just keeps the code simpler than only
including it for the non-final entries. It's white noise for the
parser later.
-Michael
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel