summaryrefslogtreecommitdiff
path: root/python/cdrom.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2009-07-13 14:25:06 +0200
committerJulian Andres Klode <jak@debian.org>2009-07-13 14:25:06 +0200
commitdabc8c6796afdaf0e2918db77117a07eae8b1fd4 (patch)
tree14f67c48740003783572bc8d1fa2b5eba9bf9cca /python/cdrom.cc
parentb0abeea43f6e51c452af68d8ec9bf3d0f701d772 (diff)
downloadpython-apt-dabc8c6796afdaf0e2918db77117a07eae8b1fd4.tar.gz
python: Rename all PyTypeObject's to conform to PEP 7.
This is the first step towards implementing coding guidelines for the C++ code and providing an usable C++ API.
Diffstat (limited to 'python/cdrom.cc')
-rw-r--r--python/cdrom.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/cdrom.cc b/python/cdrom.cc
index b5b87758..84d7179f 100644
--- a/python/cdrom.cc
+++ b/python/cdrom.cc
@@ -77,7 +77,7 @@ static PyObject *PkgCdromNew(PyTypeObject *type,PyObject *Args,PyObject *kwds)
}
-PyTypeObject PkgCdromType =
+PyTypeObject PyCdrom_Type =
{
PyVarObject_HEAD_INIT(&PyType_Type, 0)
"apt_pkg.Cdrom", // tp_name
@@ -126,7 +126,7 @@ PyObject *GetCdrom(PyObject *Self,PyObject *Args)
{
PyErr_WarnEx(PyExc_DeprecationWarning, "apt_pkg.GetCdrom() is deprecated. "
"Please see apt_pkg.Cdrom() for the replacement.", 1);
- return PkgCdromNew(&PkgCdromType,Args,0);
+ return PkgCdromNew(&PyCdrom_Type,Args,0);
}
#endif