diff options
| author | 2019-07-22 17:44:21 -0400 | |
|---|---|---|
| committer | 2019-07-22 17:44:21 -0400 | |
| commit | 75585469ebef6e560c6650105c9e6b7a5521bd62 (patch) | |
| tree | a5d63f518f8549179224496a0ea5a761b8379a87 /bot/seasons/easter/easter_riddle.py | |
| parent | Rename 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.py | 2 |
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 |