1
0
mirror of https://github.com/django/django.git synced 2025-03-03 13:34:26 +00:00

Removed unused Query.clone() memo kwarg.

Unused since 23ca3a01940c63942885df4709712cebf4df79ec.
This commit is contained in:
Tim Graham 2017-07-07 09:29:58 -04:00 committed by GitHub
parent 686772c177
commit 23c529a774

View File

@ -241,7 +241,8 @@ class Query:
return self.get_compiler(DEFAULT_DB_ALIAS).as_sql() return self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
def __deepcopy__(self, memo): 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 memo[id(self)] = result
return result return result
@ -263,7 +264,7 @@ class Query:
""" """
return self.model._meta 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 Create a copy of the current instance. The 'kwargs' parameter can be
used by clients to update attributes after copying has taken place. used by clients to update attributes after copying has taken place.