X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=workitems.py;h=f28db44153602ee3079ab5464d6bdd089904ee35;hp=6dc4d6b58e4da51f2276dc973e3698863f091ec0;hb=589632a05389da64aa2f16b844965050f69dc584;hpb=c990185ecf4cf0c7f782fdbba7740cb47cf67d0c diff --git a/workitems.py b/workitems.py index 6dc4d6b..f28db44 100755 --- a/workitems.py +++ b/workitems.py @@ -91,15 +91,18 @@ def get_blueprint_workitems(blueprint_url): found_workitems = False result = [] for l in urllib.urlopen(blueprint_url): + end = False if not found_workitems: if work_items_re.search(l): found_workitems = True continue - l = l.replace('
', '').replace('', '').strip() + if '

' in l: + end = True + l = l.replace('
', '').replace('', '').replace('

', '').strip() # ends with empty line - if l.endswith('

') or not l: + if end or not l: break try: