Commit 6bd0c1d9 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2379] style fix: combine short lines; indentation

parent 65ce062a
...@@ -190,8 +190,7 @@ initModulePart_ZoneLoader(PyObject* mod) { ...@@ -190,8 +190,7 @@ initModulePart_ZoneLoader(PyObject* mod) {
return (false); return (false);
} }
void* p = &zone_loader_type; void* p = &zone_loader_type;
if (PyModule_AddObject(mod, "ZoneLoader", if (PyModule_AddObject(mod, "ZoneLoader", static_cast<PyObject*>(p)) < 0) {
static_cast<PyObject*>(p)) < 0) {
return (false); return (false);
} }
Py_INCREF(&zone_loader_type); Py_INCREF(&zone_loader_type);
...@@ -286,8 +285,8 @@ PyInit_datasrc(void) { ...@@ -286,8 +285,8 @@ PyInit_datasrc(void) {
PyObjectContainer(po_DataSourceError).installToModule(mod, "Error"); PyObjectContainer(po_DataSourceError).installToModule(mod, "Error");
po_MasterFileError = PyErr_NewException("isc.datasrc.MasterFileError", po_MasterFileError = PyErr_NewException("isc.datasrc.MasterFileError",
po_DataSourceError, NULL); po_DataSourceError, NULL);
PyObjectContainer(po_MasterFileError).installToModule(mod, PyObjectContainer(po_MasterFileError).
"MasterFileError"); installToModule(mod, "MasterFileError");
po_OutOfZone = PyErr_NewException("isc.datasrc.OutOfZone", NULL, NULL); po_OutOfZone = PyErr_NewException("isc.datasrc.OutOfZone", NULL, NULL);
PyObjectContainer(po_OutOfZone).installToModule(mod, "OutOfZone"); PyObjectContainer(po_OutOfZone).installToModule(mod, "OutOfZone");
po_NotImplemented = PyErr_NewException("isc.datasrc.NotImplemented", po_NotImplemented = PyErr_NewException("isc.datasrc.NotImplemented",
......
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