@@ -187,7 +187,7 @@ def transaction(self):
187
187
self ._c = new_c
188
188
yield
189
189
self ._c .execute ("DELETE FROM status" )
190
- self ._c .execute ("INSERT INTO status " " SELECT * FROM new_status" )
190
+ self ._c .execute ("INSERT INTO status SELECT * FROM new_status" )
191
191
self ._c .execute ("DELETE FROM new_status" )
192
192
finally :
193
193
self ._c = old_c
@@ -199,7 +199,7 @@ def insert_ident_a(self, ident, a_props):
199
199
raise IdentAlreadyExists (old_href = old_props .href , new_href = a_props .href )
200
200
b_props = self .get_new_b (ident ) or ItemMetadata ()
201
201
self ._c .execute (
202
- "INSERT OR REPLACE INTO new_status " " VALUES(?, ?, ?, ?, ?, ?, ?)" ,
202
+ "INSERT OR REPLACE INTO new_status VALUES(?, ?, ?, ?, ?, ?, ?)" ,
203
203
(
204
204
ident ,
205
205
a_props .href ,
@@ -218,7 +218,7 @@ def insert_ident_b(self, ident, b_props):
218
218
raise IdentAlreadyExists (old_href = old_props .href , new_href = b_props .href )
219
219
a_props = self .get_new_a (ident ) or ItemMetadata ()
220
220
self ._c .execute (
221
- "INSERT OR REPLACE INTO new_status " " VALUES(?, ?, ?, ?, ?, ?, ?)" ,
221
+ "INSERT OR REPLACE INTO new_status VALUES(?, ?, ?, ?, ?, ?, ?)" ,
222
222
(
223
223
ident ,
224
224
a_props .href ,
@@ -232,14 +232,14 @@ def insert_ident_b(self, ident, b_props):
232
232
233
233
def update_ident_a (self , ident , props ):
234
234
self ._c .execute (
235
- "UPDATE new_status" " SET href_a=?, hash_a=?, etag_a=?" " WHERE ident=?" ,
235
+ "UPDATE new_status SET href_a=?, hash_a=?, etag_a=? WHERE ident=?" ,
236
236
(props .href , props .hash , props .etag , ident ),
237
237
)
238
238
assert self ._c .rowcount > 0
239
239
240
240
def update_ident_b (self , ident , props ):
241
241
self ._c .execute (
242
- "UPDATE new_status" " SET href_b=?, hash_b=?, etag_b=?" " WHERE ident=?" ,
242
+ "UPDATE new_status SET href_b=?, hash_b=?, etag_b=? WHERE ident=?" ,
243
243
(props .href , props .hash , props .etag , ident ),
244
244
)
245
245
assert self ._c .rowcount > 0
@@ -300,7 +300,7 @@ def rollback(self, ident):
300
300
return
301
301
302
302
self ._c .execute (
303
- "INSERT OR REPLACE INTO new_status" " VALUES (?, ?, ?, ?, ?, ?, ?)" ,
303
+ "INSERT OR REPLACE INTO new_status VALUES (?, ?, ?, ?, ?, ?, ?)" ,
304
304
(ident , a .href , b .href , a .hash , b .hash , a .etag , b .etag ),
305
305
)
306
306
0 commit comments