Fix identation
This commit is contained in:
parent
3d14ba3dd6
commit
56d4b8c371
|
@ -19,16 +19,16 @@ def on_connect(client, userdata, flags, rc):
|
||||||
def on_message(client, userdata, msg):
|
def on_message(client, userdata, msg):
|
||||||
print("Print")
|
print("Print")
|
||||||
with open("printer/locations.txt") as locations:
|
with open("printer/locations.txt") as locations:
|
||||||
lines = locations.read().splitlines()
|
lines = locations.read().splitlines()
|
||||||
location = random.choice(lines)
|
location = random.choice(lines)
|
||||||
|
|
||||||
with open("printer/actions.txt") as actions:
|
with open("printer/actions.txt") as actions:
|
||||||
lines = actions.read().splitlines()
|
lines = actions.read().splitlines()
|
||||||
action = random.choice(lines)
|
action = random.choice(lines)
|
||||||
|
|
||||||
with open("printer/adverbs.txt") as adverb:
|
with open("printer/adverbs.txt") as adverb:
|
||||||
lines = adverb.read().splitlines()
|
lines = adverb.read().splitlines()
|
||||||
adverb = random.choice(lines)
|
adverb = random.choice(lines)
|
||||||
|
|
||||||
if random.randint(0,1):
|
if random.randint(0,1):
|
||||||
im=Image.open("printer/image.jpg")
|
im=Image.open("printer/image.jpg")
|
||||||
|
|
Loading…
Reference in New Issue