(filename)
return [line for line in lineiter if line and not line.startswith("#")]
load requirements from a pip requirements file
load requirements from a pip requirements file
load requirements from a pip requirements file
def parse_requirements(filename):
    """ load requirements from a pip requirements file """
    lineiter = (line.strip() for line in open(filename))
    return [line for line in lineiter if line and not line.startswith("#")]
def parse_requirements ( filename ) : lineiter = ( line . strip ( ) for line in open ( filename ) ) return [ line for line in lineiter if line and not line . startswith ( "#" ) ]