2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 07:02:15 +00:00

- Changed the error message about missing policies.

[SVN r18118]
This commit is contained in:
Bruno da Silva de Oliveira
2003-03-27 23:40:59 +00:00
parent d2470e4f9c
commit 734657244b

View File

@@ -56,7 +56,8 @@ def HandlePolicy(function, policy):
# show a warning to the user, if needed
if needs_policy and policy is None:
global _printed_warnings
warning = '---> Error: Method "%s" needs a policy.' % function.FullName()
warning = '---> Error: %s returns a pointer or a reference, ' \
'but no policy was specified.' % function.FullName()
if warning not in _printed_warnings:
print warning
print