* Trent W. Buck <[EMAIL PROTECTED]> [20071102 14:30]: > > + if name.startswith('hgext/'): > > + name = 'hgext.' + name[6:] > > Would this be faster? > > + name[5] = '.'
Strings are immutable in Python and as this code isn't executed that often, the performance impact isn't measurable. Thomas -- [EMAIL PROTECTED] - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A Intevation GmbH, Osnabrueck - Register: Amtsgericht Osnabrueck, HR B 18998 Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
pgp8cfrW2ds9Y.pgp
Description: PGP signature