Skip to content

Commit 23c529a

Browse files
authored
Removed unused Query.clone() memo kwarg.
Unused since 23ca3a0.
1 parent 686772c commit 23c529a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

django/db/models/sql/query.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,8 @@ def sql_with_params(self):
241241
return self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
242242

243243
def __deepcopy__(self, memo):
244-
result = self.clone(memo=memo)
244+
"""Limit the amount of work when a Query is deepcopied."""
245+
result = self.clone()
245246
memo[id(self)] = result
246247
return result
247248

@@ -263,7 +264,7 @@ def get_meta(self):
263264
"""
264265
return self.model._meta
265266

266-
def clone(self, klass=None, memo=None, **kwargs):
267+
def clone(self, klass=None, **kwargs):
267268
"""
268269
Create a copy of the current instance. The 'kwargs' parameter can be
269270
used by clients to update attributes after copying has taken place.

0 commit comments

Comments
 (0)