|
@@ -186,8 +186,8 @@ RRType_init(s_RRType* self, PyObject* args) {
|
|
|
const char* s;
|
|
|
unsigned int i;
|
|
|
PyObject* bytes = NULL;
|
|
|
- // The constructor argument can be a string ("IN"), an integer (1),
|
|
|
- // or a sequence of numbers between 0 and 255 (wire code)
|
|
|
+ // The constructor argument can be a string ("A"), an integer (1),
|
|
|
+ // or a sequence of numbers between 0 and 65535 (wire code)
|
|
|
|
|
|
// Note that PyArg_ParseType can set PyError, and we need to clear
|
|
|
// that if we try several like here. Otherwise the *next* python
|
|
@@ -200,7 +200,7 @@ RRType_init(s_RRType* self, PyObject* args) {
|
|
|
} else if (PyArg_ParseTuple(args, "I", &i)) {
|
|
|
PyErr_Clear();
|
|
|
if (i > 65535) {
|
|
|
- PyErr_SetString(po_InvalidRRType, "Class number too high");
|
|
|
+ PyErr_SetString(po_InvalidRRType, "RR Type number too high");
|
|
|
return (-1);
|
|
|
}
|
|
|
self->rrtype = new RRType(i);
|