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:
@@ -110,7 +110,9 @@ int UnaryPredicate1D_Init(PyObject *module)
|
||||
|
||||
//------------------------INSTANCE METHODS ----------------------------------
|
||||
|
||||
static char UnaryPredicate1D___doc__[] =
|
||||
PyDoc_STRVAR(
|
||||
/* Wrap. */
|
||||
UnaryPredicate1D___doc__,
|
||||
"Base class for unary predicates that work on :class:`Interface1D`. A\n"
|
||||
"UnaryPredicate1D is a functor that evaluates a condition on a\n"
|
||||
"Interface1D and returns true or false depending on whether this\n"
|
||||
@@ -129,7 +131,7 @@ static char UnaryPredicate1D___doc__[] =
|
||||
" :arg inter: The Interface1D on which we wish to evaluate the predicate.\n"
|
||||
" :type inter: :class:`Interface1D`\n"
|
||||
" :return: True if the condition is satisfied, false otherwise.\n"
|
||||
" :rtype: bool\n";
|
||||
" :rtype: bool\n");
|
||||
|
||||
static int UnaryPredicate1D___init__(BPy_UnaryPredicate1D *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
@@ -189,10 +191,12 @@ static PyObject *UnaryPredicate1D___call__(BPy_UnaryPredicate1D *self,
|
||||
|
||||
/*----------------------UnaryPredicate1D get/setters ----------------------------*/
|
||||
|
||||
PyDoc_STRVAR(UnaryPredicate1D_name_doc,
|
||||
"The name of the unary 1D predicate.\n"
|
||||
"\n"
|
||||
":type: str");
|
||||
PyDoc_STRVAR(
|
||||
/* Wrap. */
|
||||
UnaryPredicate1D_name_doc,
|
||||
"The name of the unary 1D predicate.\n"
|
||||
"\n"
|
||||
":type: str");
|
||||
|
||||
static PyObject *UnaryPredicate1D_name_get(BPy_UnaryPredicate1D *self, void * /*closure*/)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user