Skip to content

Commit

Permalink
Comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
darkpixel committed Dec 3, 2024
1 parent bfb5e99 commit a63577b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/prompts.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging

import random
import re

Expand Down Expand Up @@ -189,7 +190,8 @@ def dark_prompt(
if strip_blank_lines:
lines = strip_blanks_from_lines(lines)

# Preseed the python random library
# Preseed the python random library with the seed we were fed initially
# to randomly choose a line
random.seed(seed)
try:
# Pick a random line from the list of available lines
Expand Down Expand Up @@ -249,7 +251,7 @@ def dark_prompt(
ret = combine_with + ret
else:
# If we have no data to return and no combine_with delimiter,
# just return our data
# just return the data we were fed initially.
ret = combine_with

return (ret,)

0 comments on commit a63577b

Please sign in to comment.