Spacing issue cleaned up

This commit is contained in:
Ross Lawley 2011-05-18 16:24:35 +01:00
parent 7526272f84
commit 5d5a84dbcf

View File

@ -346,18 +346,18 @@ class QuerySet(object):
self._skip = None self._skip = None
def clone(self): def clone(self):
"""Creates a copy of the current :class:`~mongoengine.queryset.QuerySet`""" """Creates a copy of the current :class:`~mongoengine.queryset.QuerySet`"""
c = self.__class__(self._document, self._collection_obj) c = self.__class__(self._document, self._collection_obj)
copy_props = ('_initial_query', '_query_obj', '_where_clause', copy_props = ('_initial_query', '_query_obj', '_where_clause',
'_loaded_fields', '_ordering', '_snapshot', '_loaded_fields', '_ordering', '_snapshot',
'_timeout', '_limit', '_skip') '_timeout', '_limit', '_skip')
for prop in copy_props: for prop in copy_props:
val = getattr(self, prop) val = getattr(self, prop)
setattr(c, prop, copy.deepcopy(val)) setattr(c, prop, copy.deepcopy(val))
return c return c
@property @property
def _query(self): def _query(self):