|
5 | 5 | from __future__ import print_function |
6 | 6 |
|
7 | 7 | import json |
8 | | -import warnings |
9 | 8 |
|
10 | 9 | import leancloud |
11 | 10 | from leancloud import client |
@@ -91,10 +90,6 @@ def __init__(self, query_class): |
91 | 90 | self._order = [] |
92 | 91 | self._select = [] |
93 | 92 |
|
94 | | - def __call__(self): |
95 | | - warnings.warn('leancloud.Relation.query now is a property, please don\'t call it as a function', LeanCloudWarning) |
96 | | - return self |
97 | | - |
98 | 93 | @classmethod |
99 | 94 | def or_(cls, *queries): |
100 | 95 | """ |
@@ -399,10 +394,6 @@ def exists(self, key): |
399 | 394 | self._add_condition(key, '$exists', True) |
400 | 395 | return self |
401 | 396 |
|
402 | | - def does_not_exists(self, key): |
403 | | - warnings.warn('the query does_not_exists is deprecated, please use does_not_exist instead', LeanCloudWarning) |
404 | | - return self.does_not_exist(key) |
405 | | - |
406 | 397 | def does_not_exist(self, key): |
407 | 398 | """ |
408 | 399 | 增加查询条件,限制查询结果对象不包含指定字段 |
@@ -463,10 +454,6 @@ def does_not_match_query(self, key, query): |
463 | 454 | self._add_condition(key, '$notInQuery', dumped) |
464 | 455 | return self |
465 | 456 |
|
466 | | - def matched_key_in_query(self, key, query_key, query): |
467 | | - warnings.warn('the query matched_key_in_query is deprecated, please use matches_key_in_query', LeanCloudWarning) |
468 | | - return self.matches_key_in_query(key, query_key, query) |
469 | | - |
470 | 457 | def matches_key_in_query(self, key, query_key, query): |
471 | 458 | """ |
472 | 459 | 增加查询条件,限制查询结果对象指定字段的值,与另外一个查询对象的返回结果指定的值相同。 |
|
0 commit comments