Kaydet (Commit) 23c529a7 authored tarafından Tim Graham's avatar Tim Graham Kaydeden (comit) GitHub

Removed unused Query.clone() memo kwarg.

Unused since 23ca3a01.
üst 686772c1
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment