~launchpad-committers/storm/lp

« back to all changes in this revision

Viewing changes to storm/cextensions.c

  • Committer: Colin Watson
  • Date: 2023-07-06 10:51:34 UTC
  • mfrom: (386.34.138 storm)
  • Revision ID: cjwatson@canonical.com-20230706105134-rzpb4opv8nfpg56r
Merge Storm 0.26 release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
581
581
        /* self._allow_none = False */
582
582
        Py_INCREF(Py_False);
583
583
        REPLACE(self->_allow_none, Py_False);
 
584
        /* if value is None: */
 
585
        if (value == Py_None) {
 
586
            /* raise_none_error(column, default=True) */
 
587
            tmp = PyObject_CallFunctionObjArgs(raise_none_error, column,
 
588
                                               Py_True, NULL);
 
589
            /* tmp should always be NULL here. */
 
590
            Py_XDECREF(tmp);
 
591
            goto error;
 
592
        }
584
593
    }
585
594
 
586
595
    /* if value is not Undef: */