Ticket #7960: 0001-Change-all-camel_case-to-to_camel_case.patch

File 0001-Change-all-camel_case-to-to_camel_case.patch, 1.6 KB (added by gsathya, 7 years ago)
  • src/cli/menu/actions.py

    From 5b3906463c428647f621b65191e3be740b675494 Mon Sep 17 00:00:00 2001
    From: Sathyanarayanan Gunasekaran <gsathya.ceg@gmail.com>
    Date: Tue, 15 Jan 2013 12:22:26 +0530
    Subject: [PATCH] Change all camel_case() to to_camel_case()
    
    ---
     src/cli/menu/actions.py |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/src/cli/menu/actions.py b/src/cli/menu/actions.py
    index db2da5a..320373f 100644
    a b def makeViewMenu(): 
    9797    colorMenu.add(cli.menu.item.SelectionMenuItem("All", colorGroup, None))
    9898   
    9999    for color in uiTools.COLOR_LIST:
    100       colorMenu.add(cli.menu.item.SelectionMenuItem(str_tools.camel_case(color), colorGroup, color))
     100      colorMenu.add(cli.menu.item.SelectionMenuItem(str_tools.to_camel_case(color), colorGroup, color))
    101101   
    102102    viewMenu.add(colorMenu)
    103103 
    def makeGraphMenu(graphPanel): 
    137137  availableStats.sort()
    138138 
    139139  for statKey in ["None"] + availableStats:
    140     label = str_tools.camel_case(statKey, divider = " ")
     140    label = str_tools.to_camel_case(statKey, divider = " ")
    141141    statKey = None if statKey == "None" else statKey
    142142    graphMenu.add(cli.menu.item.SelectionMenuItem(label, statGroup, statKey))
    143143 
    def makeGraphMenu(graphPanel): 
    150150 
    151151  for i in range(len(cli.graphing.graphPanel.UPDATE_INTERVALS)):
    152152    label = cli.graphing.graphPanel.UPDATE_INTERVALS[i][0]
    153     label = str_tools.camel_case(label, divider = " ")
     153    label = str_tools.to_camel_case(label, divider = " ")
    154154    intervalMenu.add(cli.menu.item.SelectionMenuItem(label, intervalGroup, i))
    155155 
    156156  graphMenu.add(intervalMenu)