@@ -86,9 +86,6 @@ class Query(object):
8686 "<" : query_pb2 .PropertyFilter .Operator .LESS_THAN ,
8787 ">" : query_pb2 .PropertyFilter .Operator .GREATER_THAN ,
8888 "=" : query_pb2 .PropertyFilter .Operator .EQUAL ,
89- "!=" : query_pb2 .PropertyFilter .Operator .NOT_EQUAL ,
90- "IN" : query_pb2 .PropertyFilter .Operator .IN ,
91- "NOT_IN" : query_pb2 .PropertyFilter .Operator .NOT_IN ,
9289 }
9390 """Mapping of operator strings and their protobuf equivalents."""
9491
@@ -218,7 +215,7 @@ def add_filter(self, property_name, operator, value):
218215
219216 where property is a property stored on the entity in the datastore
220217 and operator is one of ``OPERATORS``
221- (ie, ``=``, ``<``, ``<=``, ``>``, ``>=``, ``!=``, ``IN``, ``NOT_IN`` ):
218+ (ie, ``=``, ``<``, ``<=``, ``>``, ``>=``):
222219
223220 .. testsetup:: query-filter
224221
@@ -238,7 +235,7 @@ def add_filter(self, property_name, operator, value):
238235 :param property_name: A property name.
239236
240237 :type operator: str
241- :param operator: One of ``=``, ``<``, ``<=``, ``>``, ``>=``, ``!=``, ``IN``, ``NOT_IN`` .
238+ :param operator: One of ``=``, ``<``, ``<=``, ``>``, ``>=``.
242239
243240 :type value: :class:`int`, :class:`str`, :class:`bool`,
244241 :class:`float`, :class:`NoneType`,
@@ -255,7 +252,7 @@ def add_filter(self, property_name, operator, value):
255252 """
256253 if self .OPERATORS .get (operator ) is None :
257254 error_message = 'Invalid expression: "%s"' % (operator ,)
258- choices_message = "Please use one of: =, <, <=, >, >=, !=, IN, NOT_IN ."
255+ choices_message = "Please use one of: =, <, <=, >, >=."
259256 raise ValueError (error_message , choices_message )
260257
261258 if property_name == "__key__" and not isinstance (value , Key ):
@@ -296,7 +293,7 @@ def key_filter(self, key, operator="="):
296293 :param key: The key to filter on.
297294
298295 :type operator: str
299- :param operator: (Optional) One of ``=``, ``<``, ``<=``, ``>``, ``>=``, ``!=``, ``IN``, ``NOT_IN`` .
296+ :param operator: (Optional) One of ``=``, ``<``, ``<=``, ``>``, ``>=``.
300297 Defaults to ``=``.
301298 """
302299 self .add_filter ("__key__" , operator , key )
0 commit comments