<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def requirements_from_file(filename):
 """Parses a pip requirements file into a list."""

    return [line.strip() for line in open(filename, 'r')
            if line.strip() and not line.strip().startswith('--')]