From 51664c585668fa9c99579add4ae63d9aa996eb9f Mon Sep 17 00:00:00 2001 From: Simon Forman Date: Wed, 7 Sep 2022 11:18:08 -0700 Subject: [PATCH] Pylint is kind useless on this one. --- implementations/Python/simplejoy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/implementations/Python/simplejoy.py b/implementations/Python/simplejoy.py index d6e2847..582f861 100644 --- a/implementations/Python/simplejoy.py +++ b/implementations/Python/simplejoy.py @@ -35,7 +35,7 @@ import operator class NotAListError(Exception): - pass + '''Raised when a stack is expected.''' class NotAnIntError(Exception): @@ -124,8 +124,8 @@ WORDS = ( '[' # Character class '^' # not a '[' # left square bracket nor a - '\]' # right square bracket (escaped so it doesn't close the character class) - '\s' # nor blankspace + r'\]' # right square bracket (escaped so it doesn't close the character class) + r'\s' # nor blankspace ']+' # end character class, one-or-more. ) @@ -211,7 +211,7 @@ def _parse(tokens): return list_to_stack(frame) -''' +r''' ███████╗████████╗ █████╗ ██████╗██╗ ██╗ ██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██╔╝ ███████╗ ██║ ███████║██║ █████╔╝ -- 2.11.0