|
3 | 3 | """ |
4 | 4 | from warnings import warn |
5 | 5 |
|
6 | | -from cassandra.cqlengine.query import (DMLQuery, ModelQuerySet, check_applied, |
7 | | - SimpleStatement, conn, ValidationError, |
8 | | - EqualsOperator) |
9 | | -from cassandra.cqlengine import CQLEngineException |
10 | | -from cassandra.cqlengine import columns |
11 | | -from cassandra.cqlengine.statements import (UpdateStatement, DeleteStatement, |
12 | | - BaseCQLStatement, InsertStatement) |
| 6 | +from cassandra.cqlengine import CQLEngineException, columns |
| 7 | +from cassandra.cqlengine.query import (DMLQuery, EqualsOperator, ModelQuerySet, |
| 8 | + SimpleStatement, ValidationError, |
| 9 | + check_applied, conn) |
| 10 | +from cassandra.cqlengine.statements import (BaseCQLStatement, DeleteStatement, |
| 11 | + InsertStatement, UpdateStatement) |
13 | 12 |
|
14 | 13 |
|
15 | 14 | async def _execute_statement(model, |
@@ -325,7 +324,8 @@ async def async_update(self, **values): |
325 | 324 | if col_op == 'remove' and isinstance(col, columns.Map): |
326 | 325 | if not isinstance(val, set): |
327 | 326 | raise ValidationError( |
328 | | - "Cannot apply update operation '{0}' on column '{1}' with value '{2}'. A set is required." |
| 327 | + "Cannot apply update operation '{0}' on column '{1}' " |
| 328 | + "with value '{2}'. A set is required." |
329 | 329 | .format(col_op, col_name, val)) |
330 | 330 | val = {v: None for v in val} |
331 | 331 | else: |
|
0 commit comments