-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/25/2010 05:57 AM, Ales Kozumplik wrote: > seems we do not do anything useful with the value apart from > displaying it. > > Related: rhbz#626842 > + def insert_colons(a_string): > + suffix = a_string[-2:] > + if len(a_string) > 2: > + return insert_colons(a_string[:-2]) + ':' + suffix > + else: > + return suffix > That seems useful enough that it should be part of a utility module, not buried inside another function. Brian - -- Brian C. Lane <bcl@xxxxxxxxxx> Red Hat / Port Orchard, WA -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Remember Lexington Green! iQEVAwUBTHVHcxF+jBaO/jp/AQKc+wf/YvAa6ypE2bG+OkB1pyTTKhy4QQX80iRF ZtV48QUhSwRqQGekEQyzZ4/b8evruVqMm7amtYEtGo6N5E8kxNOnVrKpa6FRXBDb +sgS8euqmsMufLcBhulGreP6yFGa3UBAwYNI4wPBGqpuJwV+ZXkGsCo+SPZuP41N CEoQyd8LvTVoZt7zdLGw5uHIsZ0U/D35C6uyhoswgbq3GTYYy542TXSS9wcIKSND m1o5/gTjTGOUyptvZRE5ToT1/tgUgFnKXDbAzv15muH0leR8w7X285Xu6ECcSNig RlPbBlKkx2P+B+01mN81+yXkh8zM4c69m65BIj92l7t4YWa22eH9+w== =I/xE -----END PGP SIGNATURE----- _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list