Skip to content

Commit aeba3fe

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3016f2c commit aeba3fe

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

isbn10to13bot/isbn_10_to_13.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
class ConvertISBN10to13Job(olclient.AbstractBotJob):
13-
1413
def run(self) -> None:
1514
"""Looks for any ISBN 10s to convert to 13"""
1615
self.write_changes_declaration()
@@ -48,14 +47,15 @@ def run(self) -> None:
4847
isbns_13.append(isbn_13)
4948

5049
if len(isbns_13) > 1:
51-
isbns_13 = dedupe(isbns_13) # remove duplicates, shouldn't normally be necessary
50+
isbns_13 = dedupe(
51+
isbns_13
52+
) # remove duplicates, shouldn't normally be necessary
5253

53-
setattr(edition, 'isbn_13', isbns_13)
54-
self.logger.info(
55-
"\t".join([olid, str(isbns_10), str(isbns_13)])
56-
)
54+
setattr(edition, "isbn_13", isbns_13)
55+
self.logger.info("\t".join([olid, str(isbns_10), str(isbns_13)]))
5756
self.save(lambda: edition.save(comment=comment))
5857

58+
5959
def dedupe(input_list: list) -> list:
6060
"""Remove duplicate elements in a list and return the new list"""
6161
output = []

0 commit comments

Comments
 (0)