Remove list prepend warning from cqlengine.statements

This commit is contained in:
Adam Holmberg
2015-10-06 14:41:53 -05:00
parent 9d98c8e633
commit 79efe97787

View File

@@ -13,17 +13,13 @@
# limitations under the License. # limitations under the License.
from datetime import datetime, timedelta from datetime import datetime, timedelta
import logging
import time import time
import six import six
import warnings
from cassandra.cqlengine import UnicodeMixin from cassandra.cqlengine import UnicodeMixin
from cassandra.cqlengine.functions import QueryValue from cassandra.cqlengine.functions import QueryValue
from cassandra.cqlengine.operators import BaseWhereOperator, InOperator from cassandra.cqlengine.operators import BaseWhereOperator, InOperator
log = logging.getLogger(__name__)
class StatementException(Exception): class StatementException(Exception):
pass pass
@@ -295,11 +291,6 @@ class ListUpdateClause(ContainerUpdateClause):
ctx[str(ctx_id)] = self._to_database(self._assignments) ctx[str(ctx_id)] = self._to_database(self._assignments)
ctx_id += 1 ctx_id += 1
if self._prepend is not None: if self._prepend is not None:
msg = "Previous versions of cqlengine implicitly reversed prepended lists to account for CASSANDRA-8733. " \
"THIS VERSION DOES NOT. This warning will be removed in a future release."
warnings.warn(msg)
log.warning(msg)
ctx[str(ctx_id)] = self._to_database(self._prepend) ctx[str(ctx_id)] = self._to_database(self._prepend)
ctx_id += 1 ctx_id += 1
if self._append is not None: if self._append is not None: