Skip to content

Commit 35ecde4

Browse files
committed
black reformat and changed obsolete add_to_pwl call
1 parent 44b7f76 commit 35ecde4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

comment_spell_check.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,9 +360,7 @@ def parse_args():
360360
help="Set file mime type. File name suffix will be ignored.",
361361
)
362362

363-
parser.add_argument(
364-
"--version", action="version", version=f"{__version__}"
365-
)
363+
parser.add_argument("--version", action="version", version=f"{__version__}")
366364

367365
args = parser.parse_args()
368366
return args
@@ -380,7 +378,7 @@ def add_dict(enchant_dict, filename, verbose=False):
380378
# You better not have more than 1 word in a line
381379
for wrd in lines:
382380
if not enchant_dict.check(wrd):
383-
enchant_dict.add_to_pwl(wrd)
381+
enchant_dict.add(wrd)
384382

385383

386384
def main():

0 commit comments

Comments
 (0)