Less indentation

main
Bob Mottram 2024-09-03 13:54:42 +01:00
parent 550e81d32d
commit ba063383d6
1 changed files with 4 additions and 4 deletions

View File

@ -1054,10 +1054,10 @@ def html_poisoned(dictionary: [], twograms: {}) -> str:
pair_found = False
if prev_wrd:
# common word sequences
if twograms.get(prev_wrd):
if randint(1, 10) <= 7:
wrd = random.choice(twograms[prev_wrd])
pair_found = True
if twograms.get(prev_wrd) and \
randint(1, 10) <= 7:
wrd = random.choice(twograms[prev_wrd])
pair_found = True
if not pair_found:
if randint(1, 10) <= 7: