Skip to content
Snippets Groups Projects
Commit 73195167 authored by noguchi-k's avatar noguchi-k Committed by Adam J. Stewart
Browse files

falcon: Set Py_None to return value (#14532)

parent c763b68b
No related branches found
No related tags found
No related merge requests found
--- spack-src/src/c/ext_falcon.c.org 2020-01-15 17:40:41.279400137 +0900
+++ spack-src/src/c/ext_falcon.c 2020-01-15 17:44:47.785718088 +0900
@@ -9,5 +9,6 @@
m = Py_InitModule("ext_falcon", SpamMethods);
if (m == NULL)
- return;
+ Py_INCREF(Py_None);
+ return Py_None;
}
......@@ -28,3 +28,7 @@ class Falcon(PythonPackage):
depends_on('pacbio-daligner', type='run')
depends_on('pacbio-dextractor', type='run')
depends_on('pacbio-damasker', type='run')
# Python version 3 and later should return
# a value of PyObject type. [-Wreturn-type]
patch('Py_None.patch', when='^python@3:')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment