From 331141d936478b9d892fc51d094ef0c7e01f5d3e Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 9 Aug 2010 20:32:37 -0400 Subject: get slightly better about deprecations in docstrings, tho this is kind of an uphill climb --- lib/sqlalchemy/sql/expression.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/sql/expression.py') diff --git a/lib/sqlalchemy/sql/expression.py b/lib/sqlalchemy/sql/expression.py index 0a5edb42f..be327fdfd 100644 --- a/lib/sqlalchemy/sql/expression.py +++ b/lib/sqlalchemy/sql/expression.py @@ -3469,8 +3469,9 @@ class _SelectBaseMixin(Executable): return self.as_scalar().label(name) @_generative - @util.deprecated(message="autocommit() is deprecated. " - "Use .execution_options(autocommit=True)") + @util.deprecated("0.6", message=":func:`.autocommit` is deprecated. " + "Use :func:`.Executable.execution_options` " + "with the 'autocommit' flag.") def autocommit(self): """return a new selectable with the 'autocommit' flag set to True.""" -- cgit v1.2.1