From 96fc3ba973a770a9222410d3cc1705d235d51919 Mon Sep 17 00:00:00 2001 From: Thomas Schmid Date: Sat, 4 Nov 2023 22:28:06 +0100 Subject: [PATCH] Doorlock.py: make eperm_insults a list choose_insult fails with a dict, so make it a list. Signed-off-by: Thomas Schmid --- pydoorlock/Doorlock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pydoorlock/Doorlock.py b/pydoorlock/Doorlock.py index 17be03f..b22c8f0 100644 --- a/pydoorlock/Doorlock.py +++ b/pydoorlock/Doorlock.py @@ -31,7 +31,7 @@ from .Protocol import Protocol log = logging.getLogger() # copied from sudo -eperm_insults = { +eperm_insults = [ 'Wrong! You cheating scum!', 'And you call yourself a Rocket Scientist!', 'No soap, honkie-lips.', @@ -50,7 +50,7 @@ eperm_insults = { 'I\'ve seen penguins that can type better than that.', 'Have you considered trying to match wits with a rutabaga?', 'You speak an infinite deal of nothing', -} +] def choose_insult():