Don't choke on trailing commas in deptokens() (#65, dmueller at suse.de)

git-svn-id: svn+ssh://rpmlint.zarb.org/home/projects/rpmlint/svn/trunk@1351 9bc8b190-ac0f-0410-8968-dc7d1f502856
This commit is contained in:
Ville Skyttä 2007-05-31 20:06:59 +00:00
parent a32c466a22
commit c0433226d2
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ def deptokens(line):
tmp = ''
wantmore = 0
for tok in re.split('[\s,]+', line.strip()):
if len(tok) == 0:
continue
if len(tmp) == 0:
tmp = tok
elif wantmore: