Subject: [merged] scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing.patch removed from -mm tree To: josh@xxxxxxxxxxxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Mon, 11 Nov 2013 10:44:02 -0800 The patch titled Subject: scripts/bloat-o-meter: use .startswith rather than fragile slicing has been removed from the -mm tree. Its filename was scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Josh Triplett <josh@xxxxxxxxxxxxxxxx> Subject: scripts/bloat-o-meter: use .startswith rather than fragile slicing str.startswith has existed since at least Python 2.0, in 2000; use it rather than a fragile comparison against an initial slice of a string, which requires hard-coding the length of the string to compare against. Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- scripts/bloat-o-meter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN scripts/bloat-o-meter~scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing scripts/bloat-o-meter --- a/scripts/bloat-o-meter~scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing +++ a/scripts/bloat-o-meter @@ -19,7 +19,7 @@ def getsizes(file): size, type, name = l[:-1].split() if type in "tTdDbBrR": # strip generated symbols - if name[:6] == "__mod_": continue + if name.startswith("__mod_"): continue if name == "linux_banner": continue # statics and some other optimizations adds random .NUMBER name = re.sub(r'\.[0-9]+', '', name) _ Patches currently in -mm which might be from josh@xxxxxxxxxxxxxxxx are origin.patch checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch checkpatchpl-check-for-the-fsf-mailing-address.patch documentation-abi-document-the-non-abi-status-of-kconfig-and-symbols.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html