def tmpfile(pref='peda-', is_binary_file=False):
 mode = ('w+b' if is_binary_file else 'w+')
 return tempfile.NamedTemporaryFile(mode=mode, prefix=pref)

def tmpfile ( pref = 'peda-' , is_binary_file = False ) : mode = ( 'w+b' if is_binary_file else 'w+' ) return tempfile . NamedTemporaryFile ( mode = mode , prefix = pref )
return utf-8-encoded bytes of a path to a tmp file .