From 23c529a7747e62fe0de1a2dc98af7ce42c1c9d36 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 7 Jul 2017 09:29:58 -0400 Subject: [PATCH] Removed unused Query.clone() memo kwarg. Unused since 23ca3a01940c63942885df4709712cebf4df79ec. --- django/db/models/sql/query.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 70fd648c52..596dc44860 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -241,7 +241,8 @@ class Query: return self.get_compiler(DEFAULT_DB_ALIAS).as_sql() def __deepcopy__(self, memo): - result = self.clone(memo=memo) + """Limit the amount of work when a Query is deepcopied.""" + result = self.clone() memo[id(self)] = result return result @@ -263,7 +264,7 @@ class Query: """ return self.model._meta - def clone(self, klass=None, memo=None, **kwargs): + def clone(self, klass=None, **kwargs): """ Create a copy of the current instance. The 'kwargs' parameter can be used by clients to update attributes after copying has taken place.