[gobolinux-devel] [gobolinux-commits] tools/Scripts/bin AugmentCommandNotFoundDatabase

Michael Homer michael at gobolinux.org
Sun Feb 17 09:58:47 NZDT 2008


On Feb 17, 2008 1:00 AM, Jonas Karlsson <jonka750 at student.liu.se> wrote:
> On Sat, 16 Feb 2008 11:29:41 +0100, Michael Homer <michael at e.geek.nz> 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


More information about the gobolinux-devel mailing list