Reformat repo with pre-commit hooks

This commit is contained in:
Filip Kucharczyk 2019-12-05 00:53:39 +01:00
parent 78b240b740
commit 17151f67c2
9 changed files with 14 additions and 14 deletions

View File

@ -10,4 +10,3 @@ If this is a requirement for your project, check the alternative: `uMongo`_ and
.. _uMongo: https://umongo.readthedocs.io/
.. _MotorEngine: https://motorengine.readthedocs.io/

View File

@ -91,4 +91,3 @@ Indices and tables
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

View File

@ -1193,7 +1193,9 @@ class BaseQuerySet(object):
validate_read_preference("read_preference", read_preference)
queryset = self.clone()
queryset._read_preference = read_preference
queryset._cursor_obj = None # we need to re-create the cursor object whenever we apply read_preference
queryset._cursor_obj = (
None
) # we need to re-create the cursor object whenever we apply read_preference
return queryset
def scalar(self, *fields):