aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/easter/easter_riddle.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-07-22 17:44:21 -0400
committerGravatar GitHub <[email protected]>2019-07-22 17:44:21 -0400
commit75585469ebef6e560c6650105c9e6b7a5521bd62 (patch)
treea5d63f518f8549179224496a0ea5a761b8379a87 /bot/seasons/easter/easter_riddle.py
parentRename variables for clarity, fix extraneous whitespace from review (diff)
Apply suggestions from code review
* Unify use of apostophes & quotes in JSON resources * Sync use of pathlib to the rest of the codebase * Remove unnecessary string conversions * Remove unnecessary dictionary `.get()` call without specifying a default * Other minor syntax modifications Co-Authored-By: Mark <[email protected]>
Diffstat (limited to 'bot/seasons/easter/easter_riddle.py')
-rw-r--r--bot/seasons/easter/easter_riddle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/seasons/easter/easter_riddle.py b/bot/seasons/easter/easter_riddle.py
index 2d4d1265..d6e6c207 100644
--- a/bot/seasons/easter/easter_riddle.py
+++ b/bot/seasons/easter/easter_riddle.py
@@ -11,7 +11,7 @@ from bot.constants import Colours
log = logging.getLogger(__name__)
-with open(Path('bot', 'resources', 'easter', 'easter_riddle.json'), 'r', encoding="utf8") as f:
+with Path("bot/resources/easter/easter_riddle.json").open("r", encoding="utf8") as f:
RIDDLE_QUESTIONS = load(f)
TIMELIMIT = 10