Allow None to mean ReturnValue.new('void') for functions and methods.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2008-05-18 17:39:06 +01:00
1 parent f9e6ebf370
commit 9bed1c4a45
3 files changed
+8 -2

No files matched your search

+3
View File
@@ -70,6 +70,9 @@ class CppMethod(ForwardWrapperBase):
DeprecationWarning, stacklevel=2)
method_name, return_value = return_value, method_name
if return_value is None:
return_value = ReturnValue.new('void')
if unblock_threads is None:
unblock_threads = settings.unblock_threads
super(CppMethod, self).__init__(