From 9ca77901ab5203aadf340a55ab64cef25caeb9fa Mon Sep 17 00:00:00 2001 From: "A. Jesse Jiryu Davis" Date: Tue, 1 Aug 2017 16:28:41 -0400 Subject: [PATCH] PYTHON-1308 - Don't deprecate "manipulate" param Can't raise DeprecationWarning if "find(manipulate=True)" since it's the default. --- pymongo/cursor.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pymongo/cursor.py b/pymongo/cursor.py index 0563b4c63..11137bf8a 100644 --- a/pymongo/cursor.py +++ b/pymongo/cursor.py @@ -140,9 +140,6 @@ class Cursor(object): warnings.warn("the 'modifiers' parameter is deprecated", DeprecationWarning, stacklevel=2) validate_is_mapping("modifiers", modifiers) - if manipulate: - warnings.warn("the 'manipulate' parameter is deprecated", - DeprecationWarning, stacklevel=2) if not isinstance(batch_size, integer_types): raise TypeError("batch_size must be an integer") if batch_size < 0: