From fba4477dd83fea93385961559b50376437b1d2d9 Mon Sep 17 00:00:00 2001 From: Stefan Wojcik Date: Tue, 7 Feb 2017 23:51:38 -0800 Subject: [PATCH] fix flake8 --- mongoengine/queryset/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mongoengine/queryset/base.py b/mongoengine/queryset/base.py index aab32ce3..7e485686 100644 --- a/mongoengine/queryset/base.py +++ b/mongoengine/queryset/base.py @@ -1745,7 +1745,6 @@ class BaseQuerySet(object): raise err return ret - def _get_order_by(self, keys): """Given a list of MongoEngine-style sort keys, return a list of sorting tuples that can be applied to a PyMongo cursor. For @@ -1886,7 +1885,7 @@ class BaseQuerySet(object): # Find the requested method on the cursor and call it with the # provided value - method = getattr(cursor, method_name)(val) + getattr(cursor, method_name)(val) # Cache the value on the queryset._{method_name} setattr(queryset, '_' + method_name, val)