From: Mike Bayer Date: Mon, 19 Jan 2015 13:49:44 +0000 (-0500) Subject: - another adjustment X-Git-Tag: rel_1_0_0b1~106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3f84a9408064bc2064bc706a369ecb463df17789;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - another adjustment --- diff --git a/lib/sqlalchemy/orm/persistence.py b/lib/sqlalchemy/orm/persistence.py index d76bb5598b..7f81a5c99a 100644 --- a/lib/sqlalchemy/orm/persistence.py +++ b/lib/sqlalchemy/orm/persistence.py @@ -677,8 +677,9 @@ def _emit_update_statements(base_mapper, uowtransaction, c.context.compiled_parameters[0], value_params) - if hasvalue or assert_multirow or assert_singlerow and \ - len(multiparams) == 1: + if hasvalue or assert_multirow or ( + assert_singlerow and + len(multiparams)) == 1: if rows != len(records): raise orm_exc.StaleDataError( "UPDATE statement on table '%s' expected to "