From deaefbe748a43b9f84dabc232f0c20e065864a14 Mon Sep 17 00:00:00 2001 From: Gord Thompson Date: Wed, 17 Feb 2021 11:58:27 -0700 Subject: Deprecate and rename schema .copy() methods Fixes: #5953 Change-Id: I1e69a1628e408f06b43efbc0cc52fc0ad1e8cbc4 --- lib/sqlalchemy/dialects/postgresql/ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/dialects/postgresql/ext.py') diff --git a/lib/sqlalchemy/dialects/postgresql/ext.py b/lib/sqlalchemy/dialects/postgresql/ext.py index a93a3477d..71a0aa5a6 100644 --- a/lib/sqlalchemy/dialects/postgresql/ext.py +++ b/lib/sqlalchemy/dialects/postgresql/ext.py @@ -241,7 +241,7 @@ class ExcludeConstraint(ColumnCollectionConstraint): ) ] - def copy(self, target_table=None, **kw): + def _copy(self, target_table=None, **kw): elements = [ ( schema._copy_expression(expr, self.parent, target_table), -- cgit v1.2.1