pybindgen.settings.deprecated_virtuals default value changed to False

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2012-03-18 22:01:23 +00:00
1 parent 4737c636bf
commit a8797ed2ae
1 file changed
+3 -4
+3 -4
View File
@@ -79,11 +79,10 @@ def _get_deprecated_virtuals():
if deprecated_virtuals is None:
import warnings
warnings.warn("The option pybindgen.settings.deprecated_virtuals has not been set."
" I am going to assume the value of True, to preserve backward"
" compatibility, but the default value will change in the future,"
" and the option will eventually disappear.",
" I am going to assume the value of False, change it to True if it breaks your APIs."
" The option will eventually disappear (the deprecated behaviour will eventually disappear).",
DeprecationWarning)
return True
return False
return deprecated_virtuals