summaryrefslogtreecommitdiff
path: root/python/pkgsrcrecords.cc
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2014-06-09 17:13:51 +0200
committerMichael Vogt <mvo@debian.org>2014-06-09 17:13:51 +0200
commit887406dbb341ed684cd898f15b133baac252bc25 (patch)
treef7458eb1d4f8836eee9645e328c3c96852310b45 /python/pkgsrcrecords.cc
parent543dfd085a39251894d86dcddbedb414fb9de6c3 (diff)
downloadpython-apt-887406dbb341ed684cd898f15b133baac252bc25.tar.gz
rename apt_pkg.SourceRecords.next() to apt_pkg.SourceRecords.step() to avoid confusion with python iterators
Diffstat (limited to 'python/pkgsrcrecords.cc')
-rw-r--r--python/pkgsrcrecords.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/pkgsrcrecords.cc b/python/pkgsrcrecords.cc
index 06602b9f..308299e2 100644
--- a/python/pkgsrcrecords.cc
+++ b/python/pkgsrcrecords.cc
@@ -75,13 +75,13 @@ static PyObject *PkgSrcRecordsRestart(PyObject *Self,PyObject *Args)
return HandleErrors(Py_None);
}
-static char *doc_PkgSrcRecordsNext =
- "next() -> bool\n\n"
- "Go to the source package. Each call moves\n"
+static char *doc_PkgSrcRecordsStep =
+ "step() -> bool\n\n"
+ "Step to the next source package. Each call moves\n"
"the position of the records parser forward. If there are no\n"
"more records, return None. If the lookup failed this way,\n"
"access to any of the attributes will result in an AttributeError.";
-static PyObject *PkgSrcRecordsNext(PyObject *Self,PyObject *Args)
+static PyObject *PkgSrcRecordsStep(PyObject *Self,PyObject *Args)
{
PkgSrcRecordsStruct &Struct = GetCpp<PkgSrcRecordsStruct>(Self);
@@ -102,7 +102,7 @@ static PyMethodDef PkgSrcRecordsMethods[] =
{
{"lookup",PkgSrcRecordsLookup,METH_VARARGS,doc_PkgSrcRecordsLookup},
{"restart",PkgSrcRecordsRestart,METH_VARARGS,doc_PkgSrcRecordsRestart},
- {"next",PkgSrcRecordsNext,METH_VARARGS,doc_PkgSrcRecordsNext},
+ {"step",PkgSrcRecordsStep,METH_VARARGS,doc_PkgSrcRecordsStep},
{}
};