PyCodeStyle fixes to keep Flake8 happy

Travis appears to be using new versions of underlying code style
analyzers, so these changes were necessary in order to keep tests green.
This commit is contained in:
Justin Mayer 2017-10-26 13:53:32 -07:00
commit 56a483475b
4 changed files with 9 additions and 9 deletions

View file

@ -55,11 +55,11 @@ def isplit(s, sep=None):
"""
sep, hardsep = r'\s+' if sep is None else re.escape(sep), sep is not None
exp, pos, l = re.compile(sep), 0, len(s)
exp, pos, length = re.compile(sep), 0, len(s)
while True:
m = exp.search(s, pos)
if not m:
if pos < l or hardsep:
if pos < length or hardsep:
# ^ mimic "split()": ''.split() returns []
yield s[pos:]
break