Skip to content

Commit 7991419

Browse files
committed
Merge implicitly concatenated strings
1 parent 03e6afe commit 7991419

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

vdirsyncer/sync/status.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def transaction(self):
187187
self._c = new_c
188188
yield
189189
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")
191191
self._c.execute("DELETE FROM new_status")
192192
finally:
193193
self._c = old_c
@@ -199,7 +199,7 @@ def insert_ident_a(self, ident, a_props):
199199
raise IdentAlreadyExists(old_href=old_props.href, new_href=a_props.href)
200200
b_props = self.get_new_b(ident) or ItemMetadata()
201201
self._c.execute(
202-
"INSERT OR REPLACE INTO new_status " "VALUES(?, ?, ?, ?, ?, ?, ?)",
202+
"INSERT OR REPLACE INTO new_status VALUES(?, ?, ?, ?, ?, ?, ?)",
203203
(
204204
ident,
205205
a_props.href,
@@ -218,7 +218,7 @@ def insert_ident_b(self, ident, b_props):
218218
raise IdentAlreadyExists(old_href=old_props.href, new_href=b_props.href)
219219
a_props = self.get_new_a(ident) or ItemMetadata()
220220
self._c.execute(
221-
"INSERT OR REPLACE INTO new_status " "VALUES(?, ?, ?, ?, ?, ?, ?)",
221+
"INSERT OR REPLACE INTO new_status VALUES(?, ?, ?, ?, ?, ?, ?)",
222222
(
223223
ident,
224224
a_props.href,
@@ -232,14 +232,14 @@ def insert_ident_b(self, ident, b_props):
232232

233233
def update_ident_a(self, ident, props):
234234
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=?",
236236
(props.href, props.hash, props.etag, ident),
237237
)
238238
assert self._c.rowcount > 0
239239

240240
def update_ident_b(self, ident, props):
241241
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=?",
243243
(props.href, props.hash, props.etag, ident),
244244
)
245245
assert self._c.rowcount > 0
@@ -300,7 +300,7 @@ def rollback(self, ident):
300300
return
301301

302302
self._c.execute(
303-
"INSERT OR REPLACE INTO new_status" " VALUES (?, ?, ?, ?, ?, ?, ?)",
303+
"INSERT OR REPLACE INTO new_status VALUES (?, ?, ?, ?, ?, ?, ?)",
304304
(ident, a.href, b.href, a.hash, b.hash, a.etag, b.etag),
305305
)
306306

0 commit comments

Comments
 (0)