@@ -149,7 +149,6 @@ def __execute_query(self, conn, session_obj, sql, trans_id, trans_obj):
149149
150150 trans_obj .set_thread_native_id (None )
151151
152-
153152 @copy_current_request_context
154153 def asyn_exec_query (conn , sql , trans_obj , is_rollback_req ,
155154 app ):
@@ -162,8 +161,9 @@ def asyn_exec_query(conn, sql, trans_obj, is_rollback_req,
162161 else :
163162 _ , _ = conn .execute_async (
164163 sql , server_cursor = trans_obj .server_cursor )
165- # # If the transaction aborted for some reason and
166- # # Auto RollBack is True then issue a rollback to cleanup.
164+ # If the transaction aborted for some reason and
165+ # Auto RollBack is True then issue a rollback
166+ # to cleanup.
167167 if is_rollback_req :
168168 conn .execute_void ("ROLLBACK;" )
169169 except Exception as e :
@@ -184,11 +184,11 @@ def asyn_exec_query(conn, sql, trans_obj, is_rollback_req,
184184 @staticmethod
185185 def is_begin_required_for_sql_query (trans_obj , conn , sql ):
186186
187- return ((trans_obj .server_cursor
188- ) or ( not trans_obj .auto_commit and
189- conn .transaction_status () == TX_STATUS_IDLE and
190- is_begin_required (sql )
191- ))
187+ return ((trans_obj .server_cursor ) or (
188+ not trans_obj .auto_commit and
189+ conn .transaction_status () == TX_STATUS_IDLE and
190+ is_begin_required (sql )
191+ ))
192192
193193 @staticmethod
194194 def is_rollback_statement_required (trans_obj , conn ):
0 commit comments