def parse_pac_file(pacfile):
try:<EOL><INDENT>with open(pacfile) as f:<EOL><INDENT>pac_script = f.read()<EOL>_pacparser.parse_pac_string(pac_script)<EOL><DEDENT><DEDENT>except IOError:<EOL><INDENT>raise IOError('<STR_LIT>'.format(pacfile))<EOL><DEDENT>
Reads the pacfile and evaluates it in the Javascript engine created by
init().