#NEWLINE# def parse_filename( filename ) : #NEWLINE# #INDENT# 'Parse the shebang given a filename.' #NEWLINE# if ( ( not os . path . exists ( filename ) ) or ( not os . access ( filename , os . X_OK ) ) ) : #NEWLINE# #INDENT# return ( ) #NEWLINE# #UNINDENT# with io . open ( filename , 'rb' ) as f : #NEWLINE# #INDENT# return parse_bytesio ( f )