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:
@@ -51,7 +51,9 @@ int UnaryPredicate0D_Init(PyObject *module)
|
||||
|
||||
//------------------------INSTANCE METHODS ----------------------------------
|
||||
|
||||
static char UnaryPredicate0D___doc__[] =
|
||||
PyDoc_STRVAR(
|
||||
/* Wrap. */
|
||||
UnaryPredicate0D___doc__,
|
||||
"Base class for unary predicates that work on\n"
|
||||
":class:`Interface0DIterator`. A UnaryPredicate0D is a functor that\n"
|
||||
"evaluates a condition on an Interface0DIterator and returns true or\n"
|
||||
@@ -71,7 +73,7 @@ static char UnaryPredicate0D___doc__[] =
|
||||
" which we wish to evaluate the predicate.\n"
|
||||
" :type it: :class:`Interface0DIterator`\n"
|
||||
" :return: True if the condition is satisfied, false otherwise.\n"
|
||||
" :rtype: bool\n";
|
||||
" :rtype: bool\n");
|
||||
|
||||
static int UnaryPredicate0D___init__(BPy_UnaryPredicate0D *self, PyObject *args, PyObject *kwds)
|
||||
{
|
||||
@@ -132,10 +134,12 @@ static PyObject *UnaryPredicate0D___call__(BPy_UnaryPredicate0D *self,
|
||||
|
||||
/*----------------------UnaryPredicate0D get/setters ----------------------------*/
|
||||
|
||||
PyDoc_STRVAR(UnaryPredicate0D_name_doc,
|
||||
"The name of the unary 0D predicate.\n"
|
||||
"\n"
|
||||
":type: str");
|
||||
PyDoc_STRVAR(
|
||||
/* Wrap. */
|
||||
UnaryPredicate0D_name_doc,
|
||||
"The name of the unary 0D predicate.\n"
|
||||
"\n"
|
||||
":type: str");
|
||||
|
||||
static PyObject *UnaryPredicate0D_name_get(BPy_UnaryPredicate0D *self, void * /*closure*/)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user