[Fedora-livecd-list] [PATCH] Use string methods instead of the string module

Tan Swee Heng thesweeheng at gmail.com
Sun Dec 16 15:58:14 UTC 2007


According to "pydoc string", the string module isn't normally used nowadays.
PEP 290 (http://www.python.org/dev/peps/pep-0290/#string-methods) also
recommends using string methods over the string module because
  i. the string module may be deprecated in future;
 ii. string methods are faster.

This patch converts the imgcreate code to use string methods instead of the
string module.

Note: This patch does not fix any bugs per se. I just thought it would be
good to follow the PEP guidelines... unless there is a need to support
Python 1.6 or earlier.

Signed-off-by: Tan Swee Heng <thesweeheng at gmail.com>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-Use-string-methods-instead-of-the-string-module.txt
URL: <http://listman.redhat.com/archives/fedora-livecd-list/attachments/20071216/2489277e/attachment.txt>


More information about the Fedora-livecd-list mailing list