#NEWLINE# def read_requirements( f ) : #NEWLINE# #INDENT# reqs = [ ] #NEWLINE# with open ( f , 'r' ) as h : #NEWLINE# #INDENT# reqs = [ req . split ( '#' , 1 ) [ 0 ] . strip ( ) for req in reqs ] #NEWLINE# reqs = [ req for req in reqs if req ] #NEWLINE# #UNINDENT# return reqs