Pylint is kind useless on this one.

This commit is contained in:
Simon Forman 2022-09-07 11:18:08 -07:00
parent acd0424287
commit 51664c5856
1 changed files with 4 additions and 4 deletions

View File

@ -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'''