Skip to content

Commit a8c50f6

Browse files
committed
flake8 cleanup: remove unused var; whitespace changes.
1 parent b61b1d6 commit a8c50f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roundup/token.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
# This module is distributed in the hope that it will be useful,
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10-
#
10+
#
1111

1212
"""This module provides the tokeniser used by roundup-admin.
1313
"""
1414
__docformat__ = 'restructuredtext'
1515

16+
1617
def token_split(s, whitespace=' \r\n\t', quotes='\'"',
17-
escaped={'r':'\r', 'n':'\n', 't':'\t'}):
18+
escaped={'r': '\r', 'n': '\n', 't': '\t'}):
1819
r'''Split the string up into tokens. An occurence of a ``'`` or ``"`` in
1920
the input will cause the splitter to ignore whitespace until a matching
2021
quote char is found. Embedded non-matching quote chars are also skipped.
@@ -49,7 +50,6 @@ def token_split(s, whitespace=' \r\n\t', quotes='\'"',
4950
state = NEWTOKEN
5051
oldstate = '' # one-level state stack ;)
5152
length = len(s)
52-
finish = 0
5353
token = ''
5454
while 1:
5555
# end of string, finish off the current token

0 commit comments

Comments
 (0)