def isEmptyOrCancelled(fileName, wasCancelled):
 return ((str(fileName) == '') or (str(fileName) == '()') or wasCancelled)

def isEmptyOrCancelled ( fileName , wasCancelled ) : return ( ( str ( fileName ) == '' ) or ( str ( fileName ) == '()' ) or wasCancelled )
determine if the filename is empty or the dialog was cancelled .