summaryrefslogtreecommitdiff
path: root/python/configuration.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-06-04 17:18:29 +0200
committerJulian Andres Klode <jak@debian.org>2009-06-04 17:18:29 +0200
commit884c8a4ebdfcedf8143dcb2ce8ef92779c353e06 (patch)
tree2dd2bbb2c5a8804aa926852fac16c93a5b4a0607 /python/configuration.cc
parent34f5670f3af2b04a4a575695584e46e4bf4106e9 (diff)
downloadpython-apt-884c8a4ebdfcedf8143dcb2ce8ef92779c353e06.tar.gz
python/: Unify naming conventions for all new names.
Unify all names to follow these rules: 1. Replace the first [A-Z] with the lowercase version [a-z] 2. Replace multiple [A-Z] with [A-Z][a-z] (one upper, remaining ones lowercase) 3. Replace all remaining [A-Z] with _[a-z] This brings us from 'FileName' to 'file_name' and from 'DescURI' to 'desc_uri'. We will at a later stage add some exceptions to this rule, like 'filename' instead of 'file_name', to improve readability.
Diffstat (limited to 'python/configuration.cc')
-rw-r--r--python/configuration.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/configuration.cc b/python/configuration.cc
index 107cf90f..7b08d90e 100644
--- a/python/configuration.cc
+++ b/python/configuration.cc
@@ -462,10 +462,10 @@ static PyMethodDef CnfMethods[] =
// Others
{"set",CnfSet,METH_VARARGS,doc_Set},
{"exists",CnfExists,METH_VARARGS,doc_Exists},
- {"subtree",CnfSubTree,METH_VARARGS,doc_SubTree},
+ {"sub_tree",CnfSubTree,METH_VARARGS,doc_SubTree},
{"list",CnfList,METH_VARARGS,doc_List},
- {"valuelist",CnfValueList,METH_VARARGS,doc_ValueList},
- {"mytag",CnfMyTag,METH_VARARGS,doc_MyTag},
+ {"value_list",CnfValueList,METH_VARARGS,doc_ValueList},
+ {"my_tag",CnfMyTag,METH_VARARGS,doc_MyTag},
{"clear",CnfClear,METH_VARARGS,doc_Clear},
#ifdef COMPAT_0_7
{"Find",CnfFind,METH_VARARGS,doc_Find},