Commit 0972d15d authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

trivial editorial fixes to comments and exception message strings


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2786 e5f2f494-b856-4b98-b285-d166d9295462
parent eaff8c21
...@@ -157,7 +157,7 @@ RRClass_init(s_RRClass* self, PyObject* args) { ...@@ -157,7 +157,7 @@ RRClass_init(s_RRClass* self, PyObject* args) {
unsigned int i; unsigned int i;
PyObject* bytes = NULL; PyObject* bytes = NULL;
// The constructor argument can be a string ("IN"), an integer (1), // The constructor argument can be a string ("IN"), an integer (1),
// or a sequence of numbers between 0 and 255 (wire code) // or a sequence of numbers between 0 and 65535 (wire code)
// Note that PyArg_ParseType can set PyError, and we need to clear // Note that PyArg_ParseType can set PyError, and we need to clear
// that if we try several like here. Otherwise the *next* python // that if we try several like here. Otherwise the *next* python
...@@ -170,7 +170,7 @@ RRClass_init(s_RRClass* self, PyObject* args) { ...@@ -170,7 +170,7 @@ RRClass_init(s_RRClass* self, PyObject* args) {
} else if (PyArg_ParseTuple(args, "I", &i)) { } else if (PyArg_ParseTuple(args, "I", &i)) {
PyErr_Clear(); PyErr_Clear();
if (i > 65535) { if (i > 65535) {
PyErr_SetString(po_InvalidRRClass, "Class number too high"); PyErr_SetString(po_InvalidRRClass, "RR class number too high");
return (-1); return (-1);
} }
self->rrclass = new RRClass(i); self->rrclass = new RRClass(i);
......
...@@ -186,8 +186,8 @@ RRType_init(s_RRType* self, PyObject* args) { ...@@ -186,8 +186,8 @@ RRType_init(s_RRType* self, PyObject* args) {
const char* s; const char* s;
unsigned int i; unsigned int i;
PyObject* bytes = NULL; PyObject* bytes = NULL;
// The constructor argument can be a string ("IN"), an integer (1), // The constructor argument can be a string ("A"), an integer (1),
// or a sequence of numbers between 0 and 255 (wire code) // or a sequence of numbers between 0 and 65535 (wire code)
// Note that PyArg_ParseType can set PyError, and we need to clear // Note that PyArg_ParseType can set PyError, and we need to clear
// that if we try several like here. Otherwise the *next* python // that if we try several like here. Otherwise the *next* python
...@@ -200,7 +200,7 @@ RRType_init(s_RRType* self, PyObject* args) { ...@@ -200,7 +200,7 @@ RRType_init(s_RRType* self, PyObject* args) {
} else if (PyArg_ParseTuple(args, "I", &i)) { } else if (PyArg_ParseTuple(args, "I", &i)) {
PyErr_Clear(); PyErr_Clear();
if (i > 65535) { if (i > 65535) {
PyErr_SetString(po_InvalidRRType, "Class number too high"); PyErr_SetString(po_InvalidRRType, "RR Type number too high");
return (-1); return (-1);
} }
self->rrtype = new RRType(i); self->rrtype = new RRType(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment