Reformat repo with pre-commit hooks
This commit is contained in:
		| @@ -10,4 +10,3 @@ If this is a requirement for your project, check the alternative:  `uMongo`_ and | |||||||
|  |  | ||||||
| .. _uMongo: https://umongo.readthedocs.io/ | .. _uMongo: https://umongo.readthedocs.io/ | ||||||
| .. _MotorEngine: https://motorengine.readthedocs.io/ | .. _MotorEngine: https://motorengine.readthedocs.io/ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -91,4 +91,3 @@ Indices and tables | |||||||
| * :ref:`genindex` | * :ref:`genindex` | ||||||
| * :ref:`modindex` | * :ref:`modindex` | ||||||
| * :ref:`search` | * :ref:`search` | ||||||
|  |  | ||||||
|   | |||||||
| @@ -1193,7 +1193,9 @@ class BaseQuerySet(object): | |||||||
|         validate_read_preference("read_preference", read_preference) |         validate_read_preference("read_preference", read_preference) | ||||||
|         queryset = self.clone() |         queryset = self.clone() | ||||||
|         queryset._read_preference = read_preference |         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 |         return queryset | ||||||
|  |  | ||||||
|     def scalar(self, *fields): |     def scalar(self, *fields): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user