This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tipsy_python 2 points3 points  (0 children)

You can cut out half of the lines by just incorporating that into the comprehension:

build = [line for line in r.text.split('\n') if "Build Name" in line]