Cleanup: force wrapping all uses of PyDoc_STRVAR
Without this, minor edits can re-indent the whole doc-string at a different level, causing diffs to be unnecessary noisy.
This commit is contained in:
@@ -50,7 +50,9 @@ int UnaryFunction1DUnsigned_Init(PyObject *module)
|
||||
|
||||
//------------------------INSTANCE METHODS ----------------------------------
|
||||
|
||||
static char UnaryFunction1DUnsigned___doc__[] =
|
||||
PyDoc_STRVAR(
|
||||
/* Wrap. */
|
||||
UnaryFunction1DUnsigned___doc__,
|
||||
"Class hierarchy: :class:`UnaryFunction1D` > :class:`UnaryFunction1DUnsigned`\n"
|
||||
"\n"
|
||||
"Base class for unary functions (functors) that work on\n"
|
||||
@@ -63,7 +65,7 @@ static char UnaryFunction1DUnsigned___doc__[] =
|
||||
" or the integration method given as an argument.\n"
|
||||
"\n"
|
||||
" :arg integration_type: An integration method.\n"
|
||||
" :type integration_type: :class:`IntegrationType`\n";
|
||||
" :type integration_type: :class:`IntegrationType`\n");
|
||||
|
||||
static int UnaryFunction1DUnsigned___init__(BPy_UnaryFunction1DUnsigned *self,
|
||||
PyObject *args,
|
||||
@@ -129,10 +131,12 @@ static PyObject *UnaryFunction1DUnsigned___call__(BPy_UnaryFunction1DUnsigned *s
|
||||
|
||||
/*----------------------UnaryFunction1DUnsigned get/setters ----------------------------*/
|
||||
|
||||
PyDoc_STRVAR(integration_type_doc,
|
||||
"The integration method.\n"
|
||||
"\n"
|
||||
":type: :class:`IntegrationType`");
|
||||
PyDoc_STRVAR(
|
||||
/* Wrap. */
|
||||
integration_type_doc,
|
||||
"The integration method.\n"
|
||||
"\n"
|
||||
":type: :class:`IntegrationType`");
|
||||
|
||||
static PyObject *integration_type_get(BPy_UnaryFunction1DUnsigned *self, void * /*closure*/)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user