def convert_png_to_data_url(filepath):
 file_contents = get_file_contents(filepath, raw_bytes=True, mode='rb')
 return convert_png_binary_to_data_url(file_contents)

def convert_png_to_data_url ( filepath ) : file_contents = get_file_contents ( filepath , raw_bytes = True , mode = 'rb' ) return convert_png_binary_to_data_url ( file_contents )
converts the png file at filepath to a data url .